Results 1 to 5 of 5

Thread: [RESOLVED] path.getdirectoryname question???

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Resolved [RESOLVED] path.getdirectoryname question???

    Hi guys,
    if i have the following filepath:
    C:\My Documents\My Pictures\Image1.jpg

    when i use path.getDirectoryName(C:\My Documents\My Pictures\Image1.jpg)
    what will be returned?

    I know this might be a bit of an easy question but i don't currently have time to search for the answer.

    Thanks in advance for any help
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: path.getdirectoryname question???

    Couldnt you try it yourself and see what it returns?

    It would return the directory of the file, in this case 'C:\My Documents\My Pictures'
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3
    Hyperactive Member Coool's Avatar
    Join Date
    Feb 2006
    Location
    System.Coool
    Posts
    333

    Re: path.getdirectoryname question???

    However, It won't check for the path.

    guess the result : D:\Documents and Settings\\\Ami\Desktp\\\\111..doc

    reult is : D:\Documents and Settings\Ami\Desktp

    I m sure u can understand
    I am using .NET 2010 with Windows 7

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2006
    Posts
    734

    Re: path.getdirectoryname question???

    I really dont have time to....i have til the end of today to finish this project so i asked the question and carried on with other things i needed to code.
    Thanks for the reply tho..i appreciate it.
    If your problem has been solved then please mark the thread [RESOLVED].
    If i have helped then please Rate my post

  5. #5
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: path.getdirectoryname question???

    Quote Originally Posted by Kimmy4
    I really dont have time to....i have til the end of today to finish this project so i asked the question and carried on with other things i needed to code.
    Thanks for the reply tho..i appreciate it.
    haha aah good thinkin
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

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



Click Here to Expand Forum to Full Width