5 Replies Latest reply on Oct 24, 2008 2:44 PM by Francisc

    Open folder or run file

    Francisc Level 3

      I have a FileSystemTree that contains folders and files.
      If the user clicks on a folder I want it to open as it would if he opened it from the Operating System.
      Also, if he clicks on a file, I want it to run as it would if he ran the file directly. i.e. If music files are set to open with WinAmp, I want winamp to start and play that file when the user clicks on a song in the FileSystemTree as it would if he opened the music file directly from the Operating System.

      I have the path to the folder/file in fst.selectedPath. I would imagine there is a function that takes that as parameter and runs the address. I tried fscommand("exec",fst.selectedPath), but it does nothing.