Sign in to follow this  
Followers 0
Mossa

Running a exe located on a network drive

4 posts in this topic

I am trying to run a executable from a network server.

It always tells me the system cannot find the file.

This is the path to the file:

\\asteroid\Tempo\dds\tempo\TEMPO.EXE

Here are my run statements i tried with:

Run("TEMPO.EXE", "\\asteroid\Tempo\dds\tempo\", @SW_MAXIMIZE)

Run("TEMPO.EXE", "\\asteroid\Tempo\dds\tempo", @SW_MAXIMIZE)

Run("TEMPO.exe", "\\asteroid\Tempo\dds\tempo", @SW_MAXIMIZE)

and so on, i think i tried all casesensitive versions.

I also tried this:

Run("TEMPO.EXE", "file:\\asteroid\Tempo\dds\tempo\", @SW_MAXIMIZE)

Could someone please help me?

I am new to AutoIt and i am planning to use it for my exam.

Thank's in advance

Share this post


Link to post
Share on other sites



Ok, i've found out a way to do it with the cmd.exe.

For all who've got the same problem, here's my code:

Run("cmd.exe /C G:\dds\tempo\TEMPO.exe", "", @SW_MAXIMIZE)

Thanks anyway,

best,

Mossa

Share this post


Link to post
Share on other sites

Try this:

Run("\\asteroid\Tempo\dds\tempo\TEMPO.EXE", "", @SW_MAXIMIZE)

You need to use the full path to the EXE.... admittedly this could be made a little bit more clear in the documentation, but it's in there....


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

It's much more nice to do it with the minimize parameter because it relates to the command-box and not the executed application. I maximize the application window later.

So this is my final code line for doing it (Mapped \\asteroid on g:\):

Run("cmd.exe /C G:\dds\tempo\TEMPO.exe", "", @SW_MINIMIZE)

Thanks and excuse my noob question.

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