El-Trucha Posted January 29, 2005 Share Posted January 29, 2005 I have this: Run(@TempDir & "\asciimid.exe " & """" & GUICtrlRead($text) & """" & " " & """" & GUICtrlRead($midi) & """"), "::{450D8FBA-AD25-11D0-98A8-0800361B1103}") It tells me: "Unable to execute the external program." I tried ClipPut'ting that path and I have this: C:\DOCUME~1\EL-TRU~1\LOCALS~1\Temp\asciimid.exe "C:\Documents and Settings\El-Trucha\My Documents\HackPlan.txt" "C:\Documents and Settings\El-Trucha\My Documents\hackplan.mid" I pasted that in a DOS prompt and it tells me: "The system cannot execute the specified program." Is something wrong with that path?? what is it?? Thanx!! (NOTE: All files in the path do exist, and when I try running @TempDir & "\asciimid.exe" it works with no problems... El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx Link to comment Share on other sites More sharing options...
El-Trucha Posted January 29, 2005 Author Share Posted January 29, 2005 Removed the extra parentheses @ the end of the first parameter and it still doesnt work... El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx Link to comment Share on other sites More sharing options...
this-is-me Posted January 29, 2005 Share Posted January 29, 2005 Try this: Run('"' & @TempDir & '\asciimid.exe" "' & GUICtrlRead($text) & '" "' & GUICtrlRead($midi) & '"', "::{450D8FBA-AD25-11D0-98A8-0800361B1103}") Who else would I be? Link to comment Share on other sites More sharing options...
El-Trucha Posted January 29, 2005 Author Share Posted January 29, 2005 Same... Hmm...I dont think it's the code that has the problem...I tried ClipPut'ting that and pasting it in a DOS window and it says the same!! What else could it be?? Thanx!! El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx Link to comment Share on other sites More sharing options...
tazdev Posted January 29, 2005 Share Posted January 29, 2005 (edited) Check the quotes. THe code you have at the top uses """ to put " in the string. I found that ' " ' (no spaces) works much better. Edited January 29, 2005 by tazdev Link to comment Share on other sites More sharing options...
El-Trucha Posted January 30, 2005 Author Share Posted January 30, 2005 ARGH!!!! &$#&% *$@*%$#!!!!!!!!! *PUNCHES DESK AND BREAKS IT* *THROWS A KAMEHAMEHA AT THE WINDOW* I'M GETTING REALLY MAD!!!!!!!! I realized this isn't an AutoIt problem, but a DOS problem...this: ClipPut('"' & @TempDir & "\asciimid.exe" & '"' & " " & '"' & GUICtrlRead($text) & '"' & " " & '"' & GUICtrlRead($midi) & '"') gives this: "C:\DOCUME~1\EL-TRU~1\LOCALS~1\Temp\asciimid.exe" "C:\Documents and Settings\El-Trucha\My Documents\HackPlan.txt" "C:\Documents and Settings\El-Trucha\My Documents\hackplan.mid" It's curious...when I take the last parameter out and paste the rest in DOS, the program executes!! (it gives a missing parameter error though...) What is it?? *THROWS AN ATOMIC KAMEHAMEHA AND DESTROYS THE MOON* Thanx!! El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx 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