G
Guest
Hi all,
I have a startup script that was working fine for a while. Now all of a
sudden it doesn't work anymore. The only thing that I know of that changed
was the server that the .exe file is on. It is now a virtual server.
Here is a sample of the script that I have that used to work.
Option explicit
Dim oShell, FSO, file1,
Set oShell = WScript.CreateObject("WScript.Shell")
Set FSO = createobject("Scripting.filesystemobject")
file1 = FSO.FileExists("c:\Program Files\PatchLink\Update Agent\dagent.exe")
If file1 = True Then
oShell.Run "runas /user:domain\username ""\\servername\setup.exe -s"""
WScript.Sleep 1500
oShell.SendKeys "password~"
Else
End If
Set FSO = Nothing
WScript.Quit
I have a startup script that was working fine for a while. Now all of a
sudden it doesn't work anymore. The only thing that I know of that changed
was the server that the .exe file is on. It is now a virtual server.
Here is a sample of the script that I have that used to work.
Option explicit
Dim oShell, FSO, file1,
Set oShell = WScript.CreateObject("WScript.Shell")
Set FSO = createobject("Scripting.filesystemobject")
file1 = FSO.FileExists("c:\Program Files\PatchLink\Update Agent\dagent.exe")
If file1 = True Then
oShell.Run "runas /user:domain\username ""\\servername\setup.exe -s"""
WScript.Sleep 1500
oShell.SendKeys "password~"
Else
End If
Set FSO = Nothing
WScript.Quit