Thread: File Path

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    113
    Rep Power
    11

    File Path


    is that correct?

    Code:
    filename := ExtractFilePath(Application.ExeName) + 'img/pic.jpg';
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Looks correct. I don't think the OS (at least Windows 2000 and later) is too particular about mixing / and \ in path names. To be consistent though, I would use \ instead like this:
    Code:
    filename := ExtractFilePath(Application.ExeName) + 'img\pic.jpg';
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    113
    Rep Power
    11
    I see..

    Besides, Mr.Sc, which library does ExtractFilePath command use?

    thanks

IMN logo majestic logo threadwatch logo seochat tools logo