locked
Get App Dir? RRS feed

  • Question

  • Is there a function for getting the application's directory path? I'm using ini files for small databases and I want the newly created files created in the application's directory.
    Monday, February 2, 2009 6:45 AM

Answers

  • Hello,

    My.Application.Info.DirectoryPath Will get you the application path.   An alternative you might consider is My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData.

    -Hazelrah
    • Marked as answer by Rehabilitated Monday, February 2, 2009 7:39 AM
    Monday, February 2, 2009 7:05 AM

All replies

  • Hello,

    My.Application.Info.DirectoryPath Will get you the application path.   An alternative you might consider is My.Computer.FileSystem.SpecialDirectories.CurrentUserApplicationData.

    -Hazelrah
    • Marked as answer by Rehabilitated Monday, February 2, 2009 7:39 AM
    Monday, February 2, 2009 7:05 AM
  • Thanks :)
    Monday, February 2, 2009 7:39 AM