tiger223 Posted March 26, 2004 Share Posted March 26, 2004 $CmdLine[0] = 1 $VAR = $CmdLine[1] if $CmdLine[0] > 0 then Run("C:\param.exe "test - " & $CmdLine[1] & " " "keys" , "", @SW_HIDE) endif My param.exe takes paramters like this (with the quotes) param.exe "test - Cmdline1" "key blah" how would i add quotes within quotes to the Run Command. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2004 Developers Share Posted March 26, 2004 (edited) 2 options: Run("C:\param.exe ""test - " & $CmdLine[1] & " ""keys" , """", @SW_HIDE) or Run('C:\param.exe "test - ' & $CmdLine[1] & ' "keys" , '"', @SW_HIDE) Edited March 26, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tiger223 Posted March 26, 2004 Author Share Posted March 26, 2004 Thanks I did as you said, although i do get Invalid workingdir error, was there something wrong with it? I tried both methods. Link to comment Share on other sites More sharing options...
scriptkitty Posted March 26, 2004 Share Posted March 26, 2004 (edited) You don't need quotes in working directory, you can leave blank. the thing in commas right before @SW_HIDE Run('C:\param.exe "test - ' & $CmdLine[1] & ' "keys" ', '', @SW_HIDE) not sure if you are missing anything else though like where you want the other " Run('C:\param.exe "test - ' & $CmdLine[1] & '" "keys" ', '', @SW_HIDE) Normally you would have matching number of " edit... Normally you would have an even number of " Edited March 26, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2004 Developers Share Posted March 26, 2004 You don't need quotes in working directory, you can leave blank. the thing in commas right before @SW_HIDE Run('C:\param.exe "test - ' & $CmdLine[1] & ' "keys" , '', @SW_HIDE) not sure if you are missing anything else thoughYour right ScriptKitty, I was to enthusiastic with the quotes.... tnx SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tiger223 Posted March 26, 2004 Author Share Posted March 26, 2004 Now theres another error which says "missing quotes" and I pasted what you did into my code. Link to comment Share on other sites More sharing options...
Developers Jos Posted March 26, 2004 Developers Share Posted March 26, 2004 Yea its confusing ... Run('C:\param.exe "test - ' & $CmdLine[1] & ' "keys"' , '', @SW_HIDE) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tiger223 Posted March 26, 2004 Author Share Posted March 26, 2004 Yeah i figured it out, but thanks , it was much easier in c and delphi Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now