Jump to content

Running a exe located on a network drive


Mossa
 Share

Recommended Posts

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

Link to comment
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!
Link to comment
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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...