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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing a .reg file in .vbs login script

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
If I have a .REG file in the same folder as my login script which is written in VBScript - how do I go about importing it?

Thanks very much

Ed
 
Have a look at thread329-1168549 which shows how regedit can be used from VBS.

Hope this helps...
 
something like this ?
Set S = WScript.CreateObject("WScript.Shell")
CurDir=Left(WScript.ScriptFullName,InStrRev(WScript.ScriptFullName,"\"))
S.Run "regedit /s " & CurDir & "filename.reg"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top