Jump to content
Sign in to follow this  

wierd quote issue

Recommended Posts

I have 2 scripts and i cant figure out why one works and the other doesnt.


Working copy

$PID = Run(@ComSpec & ' /k  "C:\Program Files (x86)\Subrigo\X2Stor\' & $ConsoleCLI & '" ', "")


Non Working copy (says "'C:\Program' is not recognized as an internal or external command,")

$PID = Run(@ComSpec & ' /k  ' & '"C:\Program Files (x86)\Subrigo\X2Stor\' & $ConsoleCLI & '" ', "")

 I am using latest autoit beta

Edited by botanic

Share this post

Link to post
Share on other sites

Tried with another program, but both of those run fine for me:

$ConsoleCLI = "audacity.exe"

$PID = Run(@ComSpec & ' /k  "c:\Program Files (x86)\Audacity\' & $ConsoleCLI & '" ', "")
$PID = Run(@ComSpec & ' /k  ' & '"c:\Program Files (x86)\Audacity\' & $ConsoleCLI & '" ', "")

I don't see why there would be a difference in functionality between the two whatsoever... Using Just to be sure, any os-specific commands or dll calls in your script, like forcing using x86 or x64 mode or something? (Not that I would know how or why that would make a difference, but yeah, info doesn't hurt.)

Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post

Link to post
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
Sign in to follow this  

  • Create New...