...

View Full Version : JS Import .reg file



mjwigham
12-21-2005, 12:16 PM
I am having problems importing a .reg file via my .js logon script.

I believe the problem lies in that there is a space in the path of .reg i am importing, so I would usually put speech marks round it, but this creates problems in js.

This is the code i have:-

var shell = WScript.CreateObject("wscript.shell");

shell.run("REGEDIT /s \\\\servername\\Application Data\\Meeting Room\\Temp\\Wallpaper.reg")

Any help would be greatly appreciated.

Mark



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum