Jump to content
Sign in to follow this  
prince albert

run command

Recommended Posts

prince albert

FileInstall("C:\documents and settings\administrator\desktop\123.exe", "C:\321.exe")

this installs the file i want just fine.. then it dont run, when this code is read

Run("C:\321.exe")

this way, i get no error, but nothing runs

whats the proper syntax for run, or whatever lol

i try with out the dir, and i get error that it cant find .exe

i try with dir after the file, and same thing.....

im reading the help file, but yah.. i cant understand what im doing wrong..

Edited by prince albert

Share this post


Link to post
Share on other sites
kami

Run("C:\321.exe")

this way, i get no error, but nothing runs

Try Run("C:\321.exe", "C:\", @SW_MAXIMIZE).

I had the same problem.

It seems that you have to use Run/RunWait command with all parameters.

kami

Share this post


Link to post
Share on other sites
PerryRaptor

This should do it...The second parameter is the working directory and the AutoIT3 engine pastes it infront of the first parameter.

Run("321.exe", "C:\", @SW_MAXIMIZE)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.