Jump to content
Sign in to follow this  
Olish

_RunDOS doesn't work with msnmsgr.exe!

Recommended Posts

Olish

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

Share this post


Link to post
Share on other sites
rambo3889

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! you’re the best in town Fight!

Share this post


Link to post
Share on other sites
Jotun

#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 by Jotun

Share this post


Link to post
Share on other sites
MHz

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 by MHz

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.