Jump to content
Sign in to follow this  
El-Trucha

WHY doesn't this command work?

Recommended Posts

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?? :lmao:

Thanx!! o:)

(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

Share this post


Link to post
Share on other sites

Try this:

Run('"' & @TempDir & '\asciimid.exe" "' & GUICtrlRead($text) & '" "' & GUICtrlRead($midi) & '"', "::{450D8FBA-AD25-11D0-98A8-0800361B1103}")

Who else would I be?

Share this post


Link to post
Share on other sites

Same... :lmao:

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!! o:)

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

Share this post


Link to post
Share on other sites

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 by tazdev

Share this post


Link to post
Share on other sites

ARGH!!!! &$#&% *$@*%$#!!!!!!!!! :lmao:o:):):):)

*PUNCHES DESK AND BREAKS IT* *THROWS A KAMEHAMEHA AT THE WINDOW*

I'M GETTING REALLY MAD!!!!!!!! :whistle::huh2:

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!! :P


El-Truchahttp://www.truchasoft.tk[url="ftp://tsfc.homeftp.net"]ftp://tsfc.homeftp.net[/url]hotline://tsfc.ath.cx

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...