Sign in to follow this  
Followers 0
colombus

Run problem with variable

7 posts in this topic

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 ?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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

Share this post


Link to post
Share on other sites

No, the program's directory is in $dossier_utils

It's actually "z:\utils" but it can move

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 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

Share this post


Link to post
Share on other sites

All is working !!!

I've forget a subdirectory :whistle:

Thanks for help !!

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