hi all,

trying to run an exe from a script , but have to give
it paramaters , how do i do that ?
WshObject = CreateObject("WScript.Shell")
WshObject.run("c:\Remove-5.1.exe \silent \client")

The exe runs but does not accept the params
thnxs

Re: CreateObject("WScript.Shell") by ekkehard

ekkehard
Mon Jan 02 04:01:55 CST 2006

JohhnyBOy wrote:
> hi all,
>
> trying to run an exe from a script , but have to give
> it paramaters , how do i do that ?
> WshObject = CreateObject("WScript.Shell")
> WshObject.run("c:\Remove-5.1.exe \silent \client")
>
> The exe runs but does not accept the params
Try
c:\Remove-5.1.exe \silent \client
from a command shell; if it runs ok, I'm afraid I can't help you,
because I don't see a reason, why it shouldn't work from your VBS
code; if not, try
c:\Remove-5.1.exe /silent /client
from a command shell; if it runs ok, change your VBS code
accordingly.

Re: CreateObject("WScript.Shell") by JohhnyBOy

JohhnyBOy
Mon Jan 02 04:14:24 CST 2006

thnxs , it helped