lightdemon Posted June 25, 2007 Posted June 25, 2007 (edited) to begin you excuse my English, i want to start a dos program and many atribute, the syntax in the help is: RunWait (@ComSpec & " /c " & 'commandName') then i must do: RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a') but it doesn't work!!! Now i haw 2 questions: 1) how I must do? 2) what is "/c" ? thanks Edited June 25, 2007 by lightdemon
/dev/null Posted June 26, 2007 Posted June 26, 2007 RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a') looks good, except the path to the file. Is it really c:\program ?? but it doesn't work!!! What is the error? Does this work for you? $notepad = @WindowsDir & "\notepad.exe c:\test.txt][ÝÂ[ØZ] ÛÛTÜXÈ [È ][ÝÈØÈ ][ÝÈ [È ÌÍÛÝY B __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
MHz Posted June 26, 2007 Posted June 26, 2007 to begin you excuse my English, i want to start a dos program and many atribute, the syntax in the help is: RunWait (@ComSpec & " /c " & 'commandName') then i must do: RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a') but it doesn't work!!! Now i haw 2 questions: 1) how I must do? 2) what is "/c" ? thanks1. Syntax looks ok so will need more information like what the prompt shows of the error produced. Replace the /c with /k so the prompt remains open to see the error produced. 2. /c is to tell comspec to run in command line mode and then exit. /k is to tell comspec to run in command line mode and remain open. You can do cmd /? at a command prompt to find out information about switches used with comspec.
lightdemon Posted June 26, 2007 Author Posted June 26, 2007 thanks!!!!!! using the "/k" I have seen the error, 'program' was an example, the real directory is: c:\varie attacco\, the problem is "varie attacco", I have to write "variea~1". thanks to everybody
MHz Posted June 26, 2007 Posted June 26, 2007 RunWait (@ComSpec & ' /c "c:\varie attacco\pippo.exe][ÝÈXIÌÎNÊ Use single quotes on the outside of the string and use double quotes to protect spaces in the path.
Lmac34 Posted June 26, 2007 Posted June 26, 2007 to begin you excuse my English, i want to start a dos program and many atribute, the syntax in the help is: RunWait (@ComSpec & " /c " & 'commandName') then i must do: RunWait (@ComSpec & " /c " & 'c:\program\pippo.exe -a') but it doesn't work!!! Now i haw 2 questions: 1) how I must do? 2) what is "/c" ? thanks If you just want to run 'c:\program\pippo.exe' then use the following RunWait("c:\program\pippo.exe -a") IF your program location contains any space place in side '"' example RunWait('"'&"c:\program files\pippo.exe"&'"'&" -a") this normally dose the trick for me. best of luck
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