vtuls Posted June 11, 2009 Share Posted June 11, 2009 im trying to run a .exe file called PointsecForPC and cant get it running the folder is C:\Program Files\Pointsec\pointsec For PC\PCMC\PointsecForPC.exe i cant seem to get it running please help a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :) Link to comment Share on other sites More sharing options...
DCCD Posted June 11, 2009 Share Posted June 11, 2009 have a try with this $Path = FileGetShortName(@ProgramFilesDir & "\Pointsec\pointsec For PC\PCMC\PointsecForPC.exe") RunWait('"' & @ComSpec & '" /c ' & $Path, '', @SW_HIDE) [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group Link to comment Share on other sites More sharing options...
jamesgooda Posted June 11, 2009 Share Posted June 11, 2009 Hmm i have a problem with an instalation program run through an autoit script sometimes it runs and sometimes it just minimises and doesnt run. When it doesnt run I can resolve it by deleting the program and the associated directory and recreating it but this seems very strange to me I am using : Run("$COAC_RELEASE_DIR/$RELEASE_NAME/$BUILD_NAME/dist/$COAC_SERVER_EXE") in my script?? Any help appreciated something to do with runwait?? Link to comment Share on other sites More sharing options...
vtuls Posted June 11, 2009 Author Share Posted June 11, 2009 found my solution in typing the complete path where you normaly type only the application name works fine now. a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :) Link to comment Share on other sites More sharing options...
jamesgooda Posted June 11, 2009 Share Posted June 11, 2009 found my solution in typing the complete path where you normaly type only the application nameworks fine now.my command already has the path Link to comment Share on other sites More sharing options...
vtuls Posted June 15, 2009 Author Share Posted June 15, 2009 i mean normally you would type: run("notepad.exe", "c:\windows\system\notepad.exe") but i now typed: run("c:\windows\system\notepad.exe","c:\windows\system\notepad.exe") and my problem was solved. i hope it helps you a bit a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :) Link to comment Share on other sites More sharing options...
herewasplato Posted June 15, 2009 Share Posted June 15, 2009 i mean normally you would type: run("notepad.exe", "c:\windows\system\notepad.exe")but i now typed: run("c:\windows\system\notepad.exe","c:\windows\system\notepad.exe")and my problem was solved. i hope it helps you a bitRun ( "filename", "workingdir"..........run("c:\windows\system\notepad.exe","c:\windows\system\notepad.exe")And if Run("notepad") does not work for you, then you have a problem with your OS PATH. [size="1"][font="Arial"].[u].[/u][/font][/size] 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