Jump to content
Sign in to follow this  
Deathboy

Can't start external program

Recommended Posts

Deathboy

I wanted to put the compiled file (.exe file) in a folder with another file and make the program I made start it

Run(@AutoItExe & " /c Start VW-AU")

Run(@AutoItExe & " /c Start VW-AU.exe")

run("VW-AU")

run("VW-AU.exe")

run("F:\VW-AU")

run("F:\VW-AU.exe")

<--- Ive tried those 6things to get the VW-AU.exe to start but It just wont do it.

I tried with other applications too without any result.

I made a 1line script just to try and open the file but I can't, any help would be appreciated, thanks

EDIT:

Forogt to mention that it is shortcuts I'm trying to start, does that have anything to say? (sees that filetype: shortcut, instead of program wich ist is on main program)

Death_boy

Edited by Deathboy

Share this post


Link to post
Share on other sites
Warmonger

I've had this issue before. Make sure your setting the working directory for the binary.

Example:

Run("Program Path + Program.exe", "Program Path", @SW_SHOW)

Example 2:

Run("C:\Windows\NOTEPAD.exe", "C:\Windows\", @SW_SHOW)

Share this post


Link to post
Share on other sites
Deathboy

Try

ShellExecute("F:\VW-AU.exe")

Thanks JohnOne Worked perfectly :mellow:

Share this post


Link to post
Share on other sites
Deathboy

I've had this issue before. Make sure your setting the working directory for the binary.

Example:

Run("Program Path + Program.exe", "Program Path", @SW_SHOW)

Example 2:

Run("C:\Windows\NOTEPAD.exe", "C:\Windows\", @SW_SHOW)

Thanks for answear but didn't work^^ :mellow:

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  

×