| 1. |
Solve : syntax for info from registry? |
|
Answer» Hi all, type 'reg' is not recognized as an internal or external command, operable program or batch. Same message when I remove 'reg' ......Quote from: JMontana on February 19, 2011, 12:07:50 PM 'reg' is not recognized as an internal or external command, operable program or batch. what happens when you type PATH at the prompt? Also, is this file present? C:\windows\system32\reg.exe Quote from: Salmon Trout on February 19, 2011, 12:22:10 PM what happens when you typeOn the Win 2000 PATH=C:\WINNT\system32;C:\WINNT\System32\Wbem;C:\PROGRAM~1\COMMON~1\ODBC\FILEMA~1;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Oracle\win32 On the Win 7 See screenshot Quote from: Salmon Trout on February 19, 2011, 12:22:10 PM Also, is this file present? Yes on the Win 7, no on the Win 2000 [recovering disk space - old attachment deleted by admin]Quote from: JMontana on February 19, 2011, 03:59:35 PM On the Win 2000 Ah... now you see fit to give some more information! At last! I was wondering when you would get around to divulging the OS. It seems there are in fact two. Well, as far as I can see the reg command should work perfectly well in your Windows 7 situation, since (a) reg.exe is in c:\windows\system32, and (b) that FOLDER is (correctly) included in the PATH. Yet you say it does not? Is that right? If so, I am very surprised. However, in the Windows 2000 situation you need to install the Support Tools from the Windows 2000 installation CD as reg.exe is not installed by default, instructions here: http://support.microsoft.com/kb/301423 or if the CD is not to hand, get just reg.exe (in a zip archive) here http://www.dynawell.com/download/reskit/microsoft/win2000/reg.zip and unpack it to a folder listed in the PATH variable. |
|