Hello, This worked great, thanks again. Got another question along this topic ... do you know if there is away to capture a value in the registry and use it as a parameter in a command line, within the same batch file? For example, in a batch file, if I run the following command: reg query "HKLM\SOFTWARE\Intervade Software\Audit\Network" /v Destination My output is such: HKEY_LOCAL_MACHINE\SOFTWARE\Intervade Software\Audit\Network Destination REG_SZ 127.0.0.1 Then, in the same batch file, I want to add "127.0.0.1" into the command line as such: reg add "HKLM\SOFTWARE\Intervade Software\Audit\Network" /v Destination /t REG_SZ /d 127.0.0.1 /f Thanks again in advance for your help.