Finding a path

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • degthat
    Forum Member
    • Jul 2002
    • 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 ?
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Re: Finding a path

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

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

    Comment

    • degthat
      Forum Member
      • Jul 2002
      • 16

      #3
      Re: Finding a path

      Thanks. Learning as I go.

      Comment

      • Worm
        Indigo Rose Customer
        • Jul 2002
        • 3971

        #4
        Re: Finding a path

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

        Comment

        Working...
        X