PDA

View Full Version : Regediting in command prompt



Rust
07-30-2001, 11:41 AM
Is there a command to add something in registry in command line?
For example, I need to have windows run a batch file at logon. So I would go to regedit and then go to hkey_local_machine\software\microsoft\windows\curr entversion\run and edit -> new -> string. then put the data in: "c:\batch.bat"...

how could that be done in a batch file using only dos commands?
do I first have to export the reg file and then add somethign to it with >> or is there an easier way?

what are the startup locations in registry in win98,NT4,WIN2k?
do they all have the same?

Simon Clausen
07-31-2001, 12:13 AM
You can either run regedit.exe from the command line by exporting the reg file (e.g. regedit /s file.reg) or you could use a program like the Command Line Registry Editor (found in the http://www.winguides.com/registry/display.php/109/ (http://www.winguides.com/registry/downloads.php?guide=registry>downloads</a>) for the keys that run commands are launched from.

Regards,

Simon Clausen
---
WinGuides.com - Windows Guide Network
<a target="_blank" href=http://www.winguides.com/>http://www.winguides.com/</a>