Richard
Wed Jan 31 16:39:46 CST 2007
"Ayush" <"ayushmaan.j[aatt]gmail.com"> wrote in message
news:utoBOgYRHHA.4000@TK2MSFTNGP04.phx.gbl...
> Replied to [Richard Mueller [MVP]]s message :
> > If you have a reg file on the machine, and want to use that instead of
> > scripting with the RegWrite method of wshShell (or WMI), the code could
be
> > similar to below:
> >
> > ' Specify location of the reg file.
> > strRegFile = "c:\scripts\MyUpdate.reg"
> >
> > ' Specify the command to merge the reg file into the local registry.
> > strCmd = "%comspec% /c regsvr32 /s " & strRegFile
>
>
> regsvr32 !! It is regedit and regedit will work directly (Without command
prompt) :
> strCmd = "regedit /s " & strRegFile
>
> And if the OP wants to use command prompt then :
> reg.exe Import "RegFilePath.reg"
>
> --
> ? Ayush
> -------------
> Search - www.Google.com | Wikipedia -
http://en.wikipedia.org
> Snip your long urls -
http://snipurl.com/
> -------------
You're right, the command is regedit.My mistake.
--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab web site -
http://www.rlmueller.net
--