+ Reply to Thread
Results 1 to 3 of 3

Thread: How to get current directory programmatically using WIN32 API?

  1. #1

    How to get current directory programmatically using WIN32 API?

    How to get current directory?

    It happens sometime that GetCurrentDirectory returns wrong path.

    Please help.

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Posts
    109
    GetCurrentDirectory should work for you.

    Visit this link: http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

    If it does not work then you should use GetCommandLine which should work as per your requirement.

    More on GetCommandLine : http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx

  3. #3
    Thanks, GetCommandLine worked for me.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

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