Content Type
Profiles
Forums
Events
Everything posted by Yzöwl
-
Delete a directory from a batch file in that directory?
Yzöwl replied to daddydave's topic in Unattended Windows 2000/XP/2003
Here's a one liner: START/B %COMSPEC% /C @RD/S/Q "%~DP0"Make it the last line of your batch file! -
batch or vbs help
Yzöwl replied to edman747's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Okay, well done for putting forward what you've done so far! The problem is I don't know exactly what you are trying to achieve, and therefore cannot help you without further information. Until then, however, the following snippet should do exactlythesame as your attempted code, but a little quicker, and using less space. @FOR /f "delims=" %%? IN ('DIR/b *.bsp') DO @ECHO/%%~n? >filenames.txt -
Batch file for Wake on LAN?
Yzöwl replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
There are some freeware offerings linked to from that page you've found already! -
They're not lost, if I click on any of them, (obviously not all of them were tested), in my 'manage attachments' control panel, they are fully downloadable! It is only the 'attachment id' urls that have gone awry.
-
A few! That's just the 'tip of the iceberg' Here is a listing of 'my posts' which should contain an attachment but for some reason doesn't!
-
Silent .NET Maker (latest update: 20080603)
Yzöwl replied to Tomcat76's topic in Application Installs
The results and /or idea of the script may be, and the Tomcat76's effort and methodology is as usual to be commended. There is however nothing amazing about the script. -
Batch file for Wake on LAN?
Yzöwl replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
There are 'small standalone' exe /com programs however, which can be invoked through the command-line /batch. -
Batch file for Wake on LAN?
Yzöwl replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
You should get all the information you need, if you start here. -
.vbs script help
Yzöwl replied to the_oliver's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Hope these help! example 1 strInFile = "C:\Temp\temp.txt" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile(strInFile, 1) Do Until objFile.AtEndOfStream strChrs = objFile.ReadLine wscript.echo strChrs Loop example 2 strSPath = "C:\SomePath\SourceDir" strDPath = "C:\SomePath\DestDir" Set objFSO = CreateObject("Scripting.FileSystemObject") Sub CopyTree(srcPath, dstPath) Dim objSubFolders, objSubFolder On Error Resume Next Set objSubFolders = objFSO.GetFolder(srcPath).SubFolders For Each objSubFolder in objSubFolders objFSO.CreateFolder dstPath & "\" & objSubFolder.Name CopyTree srcPath & "\" & objSubFolder.Name, dstPath & "\" & objSubFolder.Name Next End Sub CopyTree strSPath, strDPath -
No files will copy to %systemroot%
Yzöwl replied to schelminiak's topic in Unattended Windows 2000/XP/2003
Please don't take this the wrong way, but that error message points only to one logical conclusion... Your batch file is stating %systemdrive%\Office2003\PRO11.MSI /QB not what you think it says! -
Please ignore the above, it practically undoes everything I've done so far.There is nothing at all wrong in any way with the registry data I have produced. The error is only with how or when it is implemented
-
What isn't working? The content of your posting, (minus any forum formatting errors), is exactly as per your first post, except as I said for the spelling of favorites. The only reason it wouldn't import would be due to the file you are using not following the correct syntax for its header and footer etc. If it is importing but the changes not taking effect, then how about letting us know when and how, including any supporting documentation, you are running it.
-
Try something like this 1:@ECHO OFF 2:IF NOT EXIST C:\TEST MD C:\test 3:PUSHD C:\TEST 4:>run.bat ECHO/^>"C:\DOCUMENTS AND SETTINGS\ALL USERS\DESKTOP\Readme.txt" ECHO/Hello world 5:RUN.BATRemove the line numbers from all 5 lines before you attempt to run it
-
The particular forum holding the installer you require is only available to members, you need to register in order to access it and the many other offerings within.
-
I must concur with Tarun, the PNG attachment clearly fails to show the 'blank lines' and further highlights my issue. I know I've got nowhere with this problem before and I can live with it, just about, but in this particular case, reg syntax requires the blank line. The only way for me to therefore enter reg code 'with relative safety' is to use a method which wastes board real-estate.
-
The quote box misses out on a line return in firefox, (ers]"Personal"=hex(2):44,00), but everything else is fine using that browser. In my IE7, which I used to create the post of which I speak, there are no blank lines in the codebox version, which are obviously critical in a reg file and the same line on the quote box is rendered incorrectly. It places the line return after hex(2): instead of afterFolders] I'll take a look at it later in Opera, but is there some sort of explanation for this behaviour.
-
The data in the hex strings I have provided for you should match those in your redirect.reg in your opening post. The only change from yours other than that is that I have used the recognised, (though incorrect), spelling for favourites. The common methods of producing the correct hex strings, other than my hand produced version above, is to export them from your existing registry, or use an .inf or .cmd /.bat file for your installation of the keys.
-
Using IE as my browser I cannot use a codebox and have blank lines! Here are some test examples from a post I made earlier, in each case I have pasted into this posting exactly the same text: code Windows Registry Editor Version 5.00 ;Change location of My Documents [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] "Personal"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\ 74,00,65,00,6e,00,00,00 "My Video"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,56,00,69,00,64,00,65,00,6f,00,27,00,73,00,\ 00,00 "My Music"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,4d,00,75,00,7a,00,69,00,65,00,6b,00,00,00 "My Pictures"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\ 00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\ 5c,00,4d,00,69,00,6a,00,6e,00,20,00,41,00,66,00,62,00,65,00,65,00,6c,00,64,\ 00,69,00,6e,00,67,00,65,00,6e,00,00,00 "Favorites"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\ 00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\ 5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,65,00,74,00,65,00,6e,00,00,00 "Desktop"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,42,00,75,00,72,00,65,00,61,00,75,00,6c,00,62,00,6c,00,61,00,64,00,00,00 quote textWindows Registry Editor Version 5.00 ;Change location of My Documents [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] "Personal"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\ 74,00,65,00,6e,00,00,00 "My Video"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,56,00,69,00,64,00,65,00,6f,00,27,00,73,00,\ 00,00 "My Music"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,4d,00,75,00,7a,00,69,00,65,00,6b,00,00,00 "My Pictures"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\ 00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\ 5c,00,4d,00,69,00,6a,00,6e,00,20,00,41,00,66,00,62,00,65,00,65,00,6c,00,64,\ 00,69,00,6e,00,67,00,65,00,6e,00,00,00 "Favorites"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\ 00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\ 5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,65,00,74,00,65,00,6e,00,00,00 "Desktop"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,42,00,75,00,72,00,65,00,61,00,75,00,6c,00,62,00,6c,00,61,00,64,00,00,00 I really do hope that showed my problem, otherwise I'll look like an id***!
-
You should have something a little more like this: [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders] "Personal"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,\ 74,00,65,00,6e,00,00,00 "My Video"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,56,00,69,00,64,00,65,00,6f,00,27,00,73,00,\ 00,00 "My Music"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,4d,00,69,00,6a,00,6e,00,20,00,4d,00,75,00,7a,00,69,00,65,00,6b,00,00,00 "My Pictures"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\ 00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\ 5c,00,4d,00,69,00,6a,00,6e,00,20,00,41,00,66,00,62,00,65,00,65,00,6c,00,64,\ 00,69,00,6e,00,67,00,65,00,6e,00,00,00 "Favorites"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,\ 00,73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,\ 5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,65,00,74,00,65,00,6e,00,00,00 "Desktop"=hex(2):44,00,3a,00,5c,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,\ 73,00,5c,00,25,00,55,00,53,00,45,00,52,00,4e,00,41,00,4d,00,45,00,25,00,5c,\ 00,42,00,75,00,72,00,65,00,61,00,75,00,6c,00,62,00,6c,00,61,00,64,00,00,00<Edit> The Edit was to remove some formatting errors due to my browser and the forum software. </Edit>
-
It will add the data, but it will however not be the correct data type for that key, REG_EXPAND_SZ.
-
Your redirect.reg is completely the wrong syntax and will not work!
-
In Add or Remove Programs try placing a check in the Show updates check box!
-
Help with a batch file?
Yzöwl replied to DysfunktinaL's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
@ LLXX and others. DysfunktinaL sent me a PM and I forwarded him a solution. Unfortunately they reported my 'tested' solution not working, and after sending them some debug information, I've had no reply. I will however update the thread...eventually! -
@ TAiN that can be improved: ?.cmd [Version] Signature = $Windows NT$ [DefaultInstall] AddReg = Reg.Settings [Reg.Settings] HKCU,%MYCOMP%\DevMgr,,0x20000,"@%SystemRoot%\system32\devmgr.dll,-5" HKCU,%MYCOMP%\DevMgr\command,,0x20000,"mmc /s %SystemRoot%\system32\devmgmt.msc" [Strings] MYCOMP = "Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell" </Edit>
-
Here is a reg file Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr] @=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\ 00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,\ 65,00,76,00,6d,00,67,00,72,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,35,00,00,\ 00 [HKEY_CURRENT_USER\Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\DevMgr\command] @=hex(2):6d,00,6d,00,63,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,\ 00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,\ 65,00,6d,00,33,00,32,00,5c,00,64,00,65,00,76,00,6d,00,67,00,6d,00,74,00,2e,\ 00,6d,00,73,00,63,00,00,00I hope this meets your expectations!