Well, do you actually have a file at the root of C: that is named test.vbs?
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
Aaah...I see the problem. Change the line to:
Call Shell("wscript.exe " & "C:\test.vbs", vbMaximizedFocus)
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
It's not really all that odd. All you are doing is concatenating two strings. So, before you were saying "Run wscript.exeC:\test.vbs". Which is clearly wrong. With the space you are saying "Run wscript.exe C:\test.vbs". Which is right.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.