Execute .vbs files?
Posted: Thu Dec 04, 2014 3:39 am
Hi guys,
So I finally got Execute working with .bat files, but I want no command window so I was going to have a .vbs pass the parameters on to a .bat.
This is my vbs file:
For some reason there is no result though. I have the Echo in there so I would be able to tell if the vbs was running, nothing ever shows up.
Does Execute not support vbs for some reason?
So I finally got Execute working with .bat files, but I want no command window so I was going to have a .vbs pass the parameters on to a .bat.
This is my vbs file:
Code: Select all
Set oShell = CreateObject ("Wscript.Shell")
Set args = WScript.Arguments
Dim strArgs
Dim path
path = """C:\Program Files (x86)\Deluge\test.bat"""
strArgs = path&" "&args(0)&" "&args(1)&" "&args(2)
WScript.Echo(strArgs)
oShell.Run strArgs, 0, false
Does Execute not support vbs for some reason?