HOW TO

Hotlink to a Windows media file

Last Published: April 25, 2020

Summary

The following steps describe how to hotlink to Windows-recognized media file. See the Windows Media Player help for more information.

Procedure

 
  1. Prepare the theme table for hotlinking. Be sure the complete path and file extension are included for each record.

    See: How To: Prepare a table for hotlinking
     
  2. Open a new script window.
     
    A. Activate the Project window.
    B. Click the Scripts icon.
    C. Click New.
  3. Copy the following code into the script window:
     
    Code:
    '-- When a hot link executes a script, the contents of the
    '-- hotlink field are referenced by "Self"
    
    linkfile = Self
    exeString = "c:\Program Files\Windows Media Player\mplayer2.exe" ++ linkfile
    System.Execute(exeString) 
     
    Note:
    You may need to modify the name and directory of the Media Player in the above code.
  4. Click the Compile button.
    [O-Image] Script compile button
  5. Select Properties from the Theme menu.
  6. Select the Hot Link icon on the right.
  7. Set the Hotlink field to the field with the path to the Windows Media Player file.
  8. Set the Predefined Action to 'Hotlink to User Script.'
  9. Set Script to the script created in Step 2 and click OK.

Article ID:000004011

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Discover more on this topic