Olish Posted February 16, 2006 Share Posted February 16, 2006 Hello everybody, I have a prblem with _RunDOS that dosn't work like the following codes: _RunDOS(@ProgramFilesDir & "\MSN Messenger\msnmsgr.exe") _RunDOS("C:\Program Files\MSN Messenger\msnmsgr.exe") _RunDOS("msnmsgr.exe") But it works with: _RunDOS("dfrg.msc") Where is the error? Thank you a lot for helping me. Olivier, from France. Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
rambo3889 Posted February 16, 2006 Share Posted February 16, 2006 Have u the include #Include"Process.au3" in your script My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Olish Posted February 16, 2006 Author Share Posted February 16, 2006 (edited) Yes of course. Isn't it strange? Edited February 16, 2006 by Olish Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
rambo3889 Posted February 16, 2006 Share Posted February 16, 2006 Im sorry i didnt think My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
rambo3889 Posted February 16, 2006 Share Posted February 16, 2006 I cant see any erros My Scripts:Radioblog Club Music DownloaderOther stuff:Fun movieIm serious read the help file it helps :PFight 'Till you drop. Never stop, You Cant give up. Til you reach the top Fight! youre the best in town Fight! Link to comment Share on other sites More sharing options...
Jotun Posted February 16, 2006 Share Posted February 16, 2006 (edited) #include <Process.au3> _RunDOS('"' & @ProgramFilesDir & "\MSN Messenger\msnmsgr.exe" & '"') You could also use the Run command to start it Run(@ProgramFilesDir & "\MSN Messenger\msnmsgr.exe") Edited February 16, 2006 by Jotun Link to comment Share on other sites More sharing options...
Olish Posted February 16, 2006 Author Share Posted February 16, 2006 Thank you it works very well. It is very strange tha _RunDOS doesn't work... Should I report this bug? Olivier, from France.Free Wake On LAN script Link to comment Share on other sites More sharing options...
MHz Posted February 16, 2006 Share Posted February 16, 2006 (edited) Should I report this bug?I consider as not a bug, as it is just your syntax usage with _RunDos. @Comspec is used in the UDF and you need to wrap the command in quotes if it has spaces which you initally did not do. This is standard stuff for using DOS. Edited February 16, 2006 by MHz 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