Jump to content

Path in variable

Recommended Posts


Hi all! How to run this code. I want to start wmp, but i am need to run wmp in spite of
 that a system drive is not "C:"

sorry if i write wrong, i am a new here ;)

here a code

$all_wmp = @ProgramFilesDir & "\windows media player\wmlpayer.exe"
MsgBox (0, 0, $all_wmp)
Run ($all_wmp)

Share this post

Link to post
Share on other sites

I believe that the @ProgramFilesDir macro will return the Program Files directory of the host system.

If installation is outside of the Program Files directory you can have the user browse for file path to location and save setting.  Alternatively you maybe able to check the registry for the file path of Windows Media Player exe.  I'll research the registry idea real quick.

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


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.