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)

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

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...