Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 7 of 7

Thread: Explore File

  1. #1
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287

    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 :: Familiar people here

    My AMS Plugins:

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    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 at 08:55 AM.

  3. #3
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    thanks, but i ment Explore the folder and select the file in that explorer window
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    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.

  5. #5
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    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 :: Familiar people here

    My AMS Plugins:

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    can also be done with "Shell.Execute" but i cant remember how
    Open your eyes to Narcissism, Don't let her destroy your life!!

  7. #7
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Quote 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 :: Familiar people here

    My AMS Plugins:

Similar Threads

  1. Best way to share custom buttons with the group?
    By mwreyf1 in forum AutoPlay Media Studio 6.0
    Replies: 10
    Last Post: 04-28-2010, 01:29 PM
  2. Error 3038: Could not seek in compressed file
    By Rikard in forum Setup Factory 7.0
    Replies: 2
    Last Post: 05-25-2006, 11:55 AM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts