colombus Posted February 18, 2007 Share Posted February 18, 2007 Hi I want to call an external exe file with the run command. This is my command : Run ( '"' & $dossier_utils & '\myexe.exe"' ) I have an error "Enable to execute the external program" ; "File not found" Someone can help me ? Link to comment Share on other sites More sharing options...
BALA Posted February 18, 2007 Share Posted February 18, 2007 (edited) Is your script in the same directory as your program? EDIT: ignore that post, I realized $dossier_utils represented the path EDIT EDIT: I don't think your need the '"' & $dossier_utils &" just the myexe.exe Edited February 18, 2007 by BALA [font="Comic Sans MS"]BA-LA[/font]http://ba-la.110mb.comJoin my community, CLICK HEREAlternative links to my site:http://www.ba-la.tkhttp://www.ba-la.co.nrContact me if you would like to help with some of my projects: joeythepirate@gmail.com Link to comment Share on other sites More sharing options...
colombus Posted February 18, 2007 Author Share Posted February 18, 2007 No, the program's directory is in $dossier_utils It's actually "z:\utils" but it can move Link to comment Share on other sites More sharing options...
Shevilie Posted February 18, 2007 Share Posted February 18, 2007 (edited) First test it "hardcoded" as Run("Z:\util\myfile.exe")oÝ÷ Ù8^Úò¶¬jëh×6$dossier_utils = "Z:\utils" Run ($dossier_utils & "\myexe.exe") Edited February 18, 2007 by Shevilie Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
xcal Posted February 18, 2007 Share Posted February 18, 2007 Might need the working directory. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
colombus Posted February 18, 2007 Author Share Posted February 18, 2007 All is working !!! I've forget a subdirectory Thanks for help !! Link to comment Share on other sites More sharing options...
Shevilie Posted February 18, 2007 Share Posted February 18, 2007 Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit 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