Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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.

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
  • Recently Browsing   0 members

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