Re: Regedit silent import

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"PaulFXH" wrote in message news:1147860506.146479.196590@xxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Folks
Absolute vbscript beginner (but trying very hard) and using WinMe.
Can anybody help me include the "regedit /s" command in a script? This
works fine in a BAT file but I cannot find how to get it to function as
part of a normal wshshell.Run command in a vbs script.

Suppose a variable RegFilePath contains shortpath of *.reg file,

With CreateObject("WScript.Shell")
.Run "regedit /s " & RegFilePath, 0, True
End With

--
Miyahn (Masataka Miyashita) JPN
Microsoft MVP for Microsoft Office - Excel(Jan 2006 - Dec 2006)
https://mvp.support.microsoft.com/profile=e971f039-a892-426c-9544-83d372c269b4

.


Quantcast