I have the following script, named test.vbs, it runs, but nothing happens. If I move the files locally (c drive) and change the path to c:\4.91\setupnw.exe, it works fine. Why won't it work over the network?
'Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
' Replace the path with the program you wish to run c:\ etc...
oShell.Run "runas /user:Administrator \\Appserv\CDROM\support\nwclient\4.91\setupnw.exe"
WScript.Sleep 100
'Replace the string yourpassword below with
'the password used on your system. Include tilde
oShell.Sendkeys "password~"
Wscript.Quit
'Option explicit
dim oShell
set oShell= Wscript.CreateObject("WScript.Shell")
' Replace the path with the program you wish to run c:\ etc...
oShell.Run "runas /user:Administrator \\Appserv\CDROM\support\nwclient\4.91\setupnw.exe"
WScript.Sleep 100
'Replace the string yourpassword below with
'the password used on your system. Include tilde
oShell.Sendkeys "password~"
Wscript.Quit