Jump to content

_RunDOS doesn't work with msnmsgr.exe!


Olish
 Share

Recommended Posts

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

#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
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

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