Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4

Thread: Finding a path

  1. #1
    Join Date
    Jul 2002
    Location
    USA
    Posts
    16

    Finding a path

    I can do a search for a file and save it to variable. Unfortunately, I need the path to which that file exists. The variable includes the file name. Is there a way to remove the file name and store just the path ?

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: Finding a path

    Use the String.ParsePath action using the Drive and Folder as the information you want.

    %DriveAndPath% = String.ParsePath ("%YourFile%", DriveAndFolder)

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    16

    Re: Finding a path

    Thanks. Learning as I go.

  4. #4
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959

    Re: Finding a path

    IMO it's the best way to do it [img]/ubbthreads/images/icons/smile.gif[/img]

Posting Permissions

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