Mossa Posted October 25, 2004 Share Posted October 25, 2004 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.EXEHere 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 More sharing options...
Mossa Posted October 25, 2004 Author Share Posted October 25, 2004 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 Link to comment Share on other sites More sharing options...
CyberSlug Posted October 25, 2004 Share Posted October 25, 2004 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 More sharing options...
Mossa Posted October 25, 2004 Author Share Posted October 25, 2004 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now