Jump to content

Recommended Posts

Posted

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

Posted (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 by Jotun
Posted (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 by MHz

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
  • Recently Browsing   0 members

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