get folder-path from file-path

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John A Grandy

    get folder-path from file-path

    I don't find .net lib method to return the folder-path of a file-path.

    I'm probably not looking hard enough ... I've checked the
    System.IO.File, Path,Directory libs


  • Peter Duniho

    #2
    Re: get folder-path from file-path

    On Tue, 28 Oct 2008 12:16:59 -0700, John A Grandy
    <johnagrandy-at-gmail-dot-comwrote:
    I don't find .net lib method to return the folder-path of a file-path.
    >
    I'm probably not looking hard enough ... I've checked the
    System.IO.File, Path,Directory libs
    Well, either you simply missed the relevant method on the Path class
    (GetDirectoryNa me()), or your question doesn't mean what it looks like it
    means. :)

    Comment

    • Joe Cool

      #3
      Re: get folder-path from file-path

      On Tue, 28 Oct 2008 12:16:59 -0700, "John A Grandy"
      <johnagrandy-at-gmail-dot-comwrote:
      >I don't find .net lib method to return the folder-path of a file-path.
      >
      >I'm probably not looking hard enough ... I've checked the
      >System.IO.File ,Path,Directory libs
      >
      Look at the FileInfo class.

      Comment

      • xcal

        #4
        Re: get folder-path from file-path

        its easier to use the Path members,
        Carlos.

        "Joe Cool" <joecool@home.n etwrote in message news:4t2fg4l4vh 4bv971i9okmtbq2 9cjnkc5if@4ax.c om...
        On Tue, 28 Oct 2008 12:16:59 -0700, "John A Grandy"
        <johnagrandy-at-gmail-dot-comwrote:
        >
        I don't find .net lib method to return the folder-path of a file-path.

        I'm probably not looking hard enough ... I've checked the
        System.IO.File, Path,Directory libs
        >
        Look at the FileInfo class.

        Comment

        • Joe Cool

          #5
          Re: get folder-path from file-path

          On Wed, 29 Oct 2008 07:28:51 -0300, "xcal" <a@a.comwrote :
          >its easier to use the Path members,
          Path members?
          Carlos.
          >
          >"Joe Cool" <joecool@home.n etwrote in message news:4t2fg4l4vh 4bv971i9okmtbq2 9cjnkc5if@4ax.c om...
          >On Tue, 28 Oct 2008 12:16:59 -0700, "John A Grandy"
          ><johnagrandy-at-gmail-dot-comwrote:
          >>
          >I don't find .net lib method to return the folder-path of a file-path.
          >
          >I'm probably not looking hard enough ... I've checked the
          >System.IO.File ,Path,Directory libs
          >
          >>
          >Look at the FileInfo class.
          >

          Comment

          • xcal

            #6
            Re: get folder-path from file-path

            System.IO

            Path.GetFileNam e();
            Path.GetDirecto ryName();
            Path.GetExtensi on();

            etc, etc,

            "Joe Cool" <joecool@home.n etwrote in message news:28nhg41ofk f4v6srfman2q92g thuk6life@4ax.c om...
            On Wed, 29 Oct 2008 07:28:51 -0300, "xcal" <a@a.comwrote :
            >
            its easier to use the Path members,
            >
            Path members?
            >
            Carlos.

            "Joe Cool" <joecool@home.n etwrote in message
            news:4t2fg4l4vh 4bv971i9okmtbq2 9cjnkc5if@4ax.c om...
            On Tue, 28 Oct 2008 12:16:59 -0700, "John A Grandy"
            <johnagrandy-at-gmail-dot-comwrote:
            >
            I don't find .net lib method to return the folder-path of a file-path.

            I'm probably not looking hard enough ... I've checked the
            System.IO.File, Path,Directory libs

            >
            Look at the FileInfo class.

            Comment

            Working...