VBScript
I never wrote a VBScript before I just need one to run a setup.exe off a server. Any examples would be great.
Thanks
Thanks
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
kkaminsk
20 years ago
The simple one:
Set shell = CreateObject("WScript.Shell")
file = "\\server\virus\destroyeverything.exe"
shell.Run Chr(34) & file & Chr(34), 1, TRUE
The one with arguements:
Set shell = CreateObject("WScript.Shell")
file = "\\server\virus\destroyeverything.exe"
args = "/Q"
shell.Run Chr(34) & file & Chr(34) & " " & args, 1, TRUE
Heh I forgot to add the tail end... [8D]
Set shell = CreateObject("WScript.Shell")
file = "\\server\virus\destroyeverything.exe"
shell.Run Chr(34) & file & Chr(34), 1, TRUE
The one with arguements:
Set shell = CreateObject("WScript.Shell")
file = "\\server\virus\destroyeverything.exe"
args = "/Q"
shell.Run Chr(34) & file & Chr(34) & " " & args, 1, TRUE
Heh I forgot to add the tail end... [8D]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.