Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
batch inport reg
Name: momchil Date: November 1, 2007 at 08:03:04 Pacific OS: xp/2000 CPU/Ram: intel
Name: IVO Date: November 1, 2007 at 08:37:17 Pacific
Reply:
Yes, you have to issue
Command /C CD
*before* the line where you code the %cd% variable.
The drawback however is that the short format is now retained until you close the batch or prompt window, no matter you issue NT commands or DOS compatible ones.
0
Response Number 2
Name: momchil Date: November 1, 2007 at 08:55:20 Pacific
Reply:
Thank you that did the job. This is followed by a restart so I guess it is OK :) Thanks again
0
Response Number 3
Name: klint Date: November 2, 2007 at 10:41:00 Pacific
Reply:
Alternatively:
for %%D in ("%CD%") do set ShortCD=%%~sD
Followed by your original command line, substituting ShortCD for CD.
Summary: I have this command in my batch file, reg ADD HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v Test123 /d "%Systemdrive%\test123.bat" /f And it doesn't add it to the registry, why? ...
Summary: As Many Examples With explanations would be very much grateful. I Really need help getting this batch to work on windows Xp or any operating system. I admit I am a newbi atbatch file creating. I was ...
Summary: I can't give you the solution using vbs, but a way may be to find the key and value you wish by the Reg line command utility (in Windows 2K/XP, any edition) to process registry in batch scripts (Reg /...