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!

Run .reg file

Status
Not open for further replies.

M626

Programmer
Mar 13, 2002
299
0
0
I need to run a reg file I created, I am using this and VB doesn't like it... Any ideas?

Shell("C:temp\regtcpHN.reg", 4)
 
I think you need to tell it what to do with the file. Try this
Shell ("C:\winnt\Regedit C:temp\regtcpHN.reg",4).
You can also pass command line parameters if you wish. This should work although I have not used it in a while. Basically you are telling it to shell the regedit exe and then passing your reg file as a paramenter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top