Jump to content

@ComSpec doesn't work 4 me


 Share

Recommended Posts

Hello all,

I have been trying to run a cmd line program using the following line but it would come up with the error saying it couldnt find the command

$PID=RunWait(@ComSpec & "/C hinfo.exe app.mux > hinfo.txt",$current_directory,@SW_HIDE)

BUT, this line DOES work

$PID=RunWait("cmd.exe /C hinfo.exe app.mux > hinfo.txt", $current_directory,@SW_HIDE )

They do exactly the same thing, can anyone point out anything silly that i am missing?

Thanks

Regards

Edited by sambuddy
Link to comment
Share on other sites

Hello all,

I have been trying to run a cmd line program using the following line but it would come up with the error saying it couldnt find the command

$PID=RunWait(@ComSpec & "/C hinfo.exe app.mux > hinfo.txt",$current_directory,@SW_HIDE)

BUT, this line DOES work

$PID=RunWait("cmd.exe /C hinfo.exe app.mux > hinfo.txt", $current_directory,@SW_HIDE )

They do exactly the same thing, can anyone point out anything silly that i am missing?

Thanks

Regards

;)

Oh *&%X*%#@$, So near yet so far.

Thanks

That works

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...