Jump to content
Sign in to follow this  
vergro

run: why dont this work?

Recommended Posts

vergro

here is my code:

Run("Protell3.exe", "C\DOWN", @SW_MAXIMIZE)

And i get the following error:

Posted Image

Share this post


Link to post
Share on other sites
Nahuel

:P

Try this:

Run("C\DOWN\Protell3.exe", "C\DOWN", @SW_MAXIMIZE)

Share this post


Link to post
Share on other sites
JustinReno

C\DOWNoÝ÷ Ù«­¢+ÙèÀäÈí=]

Share this post


Link to post
Share on other sites
herewasplato

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

...but to answer the OP's question:

The working directory parameter does not function as the path to the executable.

You must specify the complete path

or

the program must be in the OS PATH environment variable.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
Nahuel

C\DOWNoÝ÷ Ù«­¢+ÙèÀäÈí=]
Ah, sorry. That's what happens when you copy and paste...

Share this post


Link to post
Share on other sites
vergro

Try Run("C\DOWN\Protell3.exe", "C\DOWN", @SW_MAXIMIZE)

this worked but also needed the ":" in C:\

doh!

wow you guys are very prompt and helpful, thank you! i'm sure i will be back again soon with more noob problems :P

Edited by vergro

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  

×