Explore File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Imagine Programming
    Indigo Rose Customer
    • Apr 2007
    • 4252

    Explore File

    Hey folks, is there a way to explore the folder of the selected file and select that file?

    i guess it is possible with Shell.Execute, but i am not sure,

    thanks, CB
    Bas Groothedde
    Imagine Programming :: Blog

    AMS8 Plugins
    IMXLH Compiler
  • longedge
    Indigo Rose Customer
    • Aug 2003
    • 2498

    #2
    How about something like -

    Code:
    strSplit = String.SplitPath("File") and then 
    strFolder= strSplit.Folder 
    File.Find (strFolder)
    p.s. Just read your post again "explore the folder of the selected file and select that file", if you already have the file name can't you just use that?
    Last edited by longedge; 08-13-2008, 08:55 AM.

    Comment

    • Imagine Programming
      Indigo Rose Customer
      • Apr 2007
      • 4252

      #3
      thanks, but i ment Explore the folder and select the file in that explorer window
      Bas Groothedde
      Imagine Programming :: Blog

      AMS8 Plugins
      IMXLH Compiler

      Comment

      • longedge
        Indigo Rose Customer
        • Aug 2003
        • 2498

        #4
        Ahh... Explorer command line switches are given here so you could just build it and then open a Windows Explorer window using the command line that you have built.

        Comment

        • Imagine Programming
          Indigo Rose Customer
          • Apr 2007
          • 4252

          #5
          great thanks!

          the code :
          Code:
          result = File.Run(_WindowsFolder.."\\explorer.exe", "/select,\"calc.exe\"", "", SW_SHOWNORMAL, false);
          i use this for other goals but this is nice thanks!
          Bas Groothedde
          Imagine Programming :: Blog

          AMS8 Plugins
          IMXLH Compiler

          Comment

          • RizlaUK
            Indigo Rose Customer
            • May 2006
            • 5552

            #6
            can also be done with "Shell.Execute" but i cant remember how
            Embrace change in your life, you never know, it could all work out for the best

            Comment

            • Imagine Programming
              Indigo Rose Customer
              • Apr 2007
              • 4252

              #7
              Originally posted by RizlaUK View Post
              can also be done with "Shell.Execute" but i cant remember how
              lol that's exactly what i thought:P i have done it before but i can't find the project i used it in
              Bas Groothedde
              Imagine Programming :: Blog

              AMS8 Plugins
              IMXLH Compiler

              Comment

              Working...
              X