Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object status fails with REG.EXE

Status
Not open for further replies.

LeighTT

Technical User
Feb 12, 2003
15
0
0
GB
When I run the following command the status always remains 0 and program hangs. This only occurs on Windows XP machines running the REG.EXE program, ok on NT4



set oExec = objshell.exec ("reg query ""Hklm\software\microsoft\windows nt\CurrentVersion""")
do while oExec.status = 0
wscript.sleep 100
loop

Has anybody had this problem and if so do they have a workaround
 
The reg.exe syntax is different under Windows XP than it is under Windows NT and 2000. Run "reg /?" or "reg query /?" to find the new syntax.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top