Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Getting the users My Documents directory?

Back to Forum: Tech Off
  • User profile image
    Scott Bryen

    Is there a way in .net to get the my documents directory? I have an open file dialog for my app and on every computer it gets installed on to i want it to open in the users my documents directory. in J# i tried Directory.getCurrentDirectory(); but thats the directory of the application. I also tried looking on MSDN Help but couldnt find any thing. Any help would be great! Big Smile

  • User profile image
    phreaks

    Scott Bryen wrote:
    Is there a way in .net to get the my documents directory? I have an open file dialog for my app and on every computer it gets installed on to i want it to open in the users my documents directory. in J# i tried Directory.getCurrentDirectory(); but thats the directory of the application. I also tried looking on MSDN Help but couldnt find any thing. Any help would be great! Big Smile


    Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);

  • User profile image
    Scott Bryen

    Thank you m8.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.