Announcement

Collapse
No announcement yet.

Opening Explorer window with search results

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Opening Explorer window with search results

    I have a script set up for searching for specific file extensions on the CD. I can have an action to copy the resulting file to the users desktop, however, what I am looking to do instead is have an explorer window open up with the hierarchy directly leading to the file. Does anyone know if this is possible?

    Any info will be greatly appreciated.

    Jason

  • #2
    Re: Opening Explorer window with search results

    Hi. Sure, that's easy. Just use a FILE > OPEN action and put your path in the "file to open" field. Use a full path or AMS variable, i.e. if I put either %Desktop% OR C:\Windows\Desktop\ into the "file to open" field, it gives me my desktop in a full screen explorer window.

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Opening Explorer window with search results

      my users are going to be looking for part numbers on the CD. I have an "edit field" where the part number will be typed and a "GO" button that searches for that part number based on a specific file extension (.jpeg), in a specific folder. The action that I currently have set is that when the file is located, it is copied to the user's desktop. I instead would like it to bring the user to the files location. I apologize if I was not clear in my first post. I appreciate your response. Any ideas?

      Thanks again.

      Jason

      Comment


      • #4
        Re: Opening Explorer window with search results

        Use the contents of your edit field as your path... If you need to get just the folder name first, use a STRING > PARSE PATH action.

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Opening Explorer window with search results

          sorry man....i am having a hard time with this one. I can not use the contents of the edit field as my path, because that field's content's will change based on the part or name that the user is searching for. Maybe if I show you what I have up to this point you will be able to assist me easier:

          //Use this to tell if the file was found
          %Files%="Default"

          //Get the Part number from the user
          %ObjectText%=EditFieldObject[EditField1].GetText

          //Look on the CD-ROM for that part number
          %Files=File.Search ("%ObjectText%.JPEG", CDROMDrives+CustomPaths)

          The next action that I am looking for is just to bring the user directly to the file in an explorer window.

          I am relatively new to this..i appreciate your patience

          Thanks again.

          Jason

          Comment


          • #6
            Re: Opening Explorer window with search results

            Use a STRING > PARSE PATH action to extract your folder path from whatever variable you store the location of that file in and then place that in the "file to open" field of a FILE > OPEN action. That will do exactly what you are asking...

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment

            Working...
            X