Sign in to follow this  
Followers 0
GMK

Run and RunWait

10 posts in this topic

For what reason would AutoIt come back with the error "Unable to execute the external program" with no other explanation? I know if the file doesn't exist, it will indicate just that. I have a script that calls several other AU3s, which have been compiled into EXEs and all but one will run. Yet, when I run the EXE separately, or open a shortcut to it, it works fine.

I don't understand. :)

Share this post


Link to post
Share on other sites



For what reason would AutoIt come back with the error "Unable to execute the external program" with no other explanation? I know if the file doesn't exist, it will indicate just that. I have a script that calls several other AU3s, which have been compiled into EXEs and all but one will run. Yet, when I run the EXE separately, or open a shortcut to it, it works fine.

I don't understand. :)

you are trying to run a .exe right?

try shellexecute("name")


[u][font="Century Gothic"]~я α и d γ ĵ . ċ . ѕ қ ϊ и и ε я~- My Programs -auto shutdownSleep funcdisallow programs[/font][/u]

Share this post


Link to post
Share on other sites

try shellexecute("name")

Thank you!

So ShellExecuteWait works, but RunWait doesn't. But I don't understand why one would work, but not the other. The EXE in question is a compiled AU3, if that makes any difference.

Share this post


Link to post
Share on other sites

Thank you!

So ShellExecuteWait works, but RunWait doesn't. But I don't understand why one would work, but not the other. The EXE in question is a compiled AU3, if that makes any difference.

You coded something wrong in the run statement which made it go wrong ....

You will have to give more details to get a better statement than that .

:)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Thank you!

So ShellExecuteWait works, but RunWait doesn't. But I don't understand why one would work, but not the other. The EXE in question is a compiled AU3, if that makes any difference.

Hard for us to understand why also, being there is no code to look at and my crystal ball is broken.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

*sigh* Sarcasm isn't appreciated.

There's really nothing more I can say. I was using just a simple RunWait command:

RunWait("C:\SW Bell\SW_Bell.exe")
This .exe file was created using AUT2EXE (i.e., compiled in SciTE). The code worked fine previously. Without attaching the long boring code, is there anything I changed in the SW_Bell.au3 that would allow it to run and compile without errors, but still cause problems when called as an .exe by another script?

Share this post


Link to post
Share on other sites

*sigh* Sarcasm isn't appreciated.

There's really nothing more I can say. I was using just a simple RunWait command:

RunWait("C:\SW Bell\SW_Bell.exe")
This .exe file was created using AUT2EXE (i.e., compiled in SciTE). The code worked fine previously. Without attaching the long boring code, is there anything I changed in the SW_Bell.au3 that would allow it to run and compile without errors, but still cause problems when called as an .exe by another script?
who says it was sarcasm ? to me its stupid to ask for help without showing what the hell you are doing .... or am I getting rude now ?

By the way ... that run statement will work when the PAth+file is correct ...

:)


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I don't think courtesy is too much to ask for, regardless of whether the amount of information provided was insufficient on my part. Anyway, thank you all for your time. Apparently it needed the single quotes, since there was a space in the directory name. (Thanks, gafrost.)

Share this post


Link to post
Share on other sites

I don't think courtesy is too much to ask for, regardless of whether the amount of information provided was insufficient on my part. Anyway, thank you all for your time. Apparently it needed the single quotes, since there was a space in the directory name. (Thanks, gafrost.)

I imagine the courtesy bit is about me.

My goal was to point out that the information was lacking, and would be difficult to help with-out more info.

Next time you have a problem tho, it would be a courtesy to supply enought information for someone to help.

Glad the single qoutes helped.

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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  
Followers 0