Click here to Skip to main content
15,392,261 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,

I have an application developed in VB.NET (windows forms) that internally generates files for later use. How can I define a specific directory to perform this action, without writing to the root directory of the application. I should mention that in the root I have some DLLs that I need to use.

For example, that all generated files are saved in "\ My Document \ MyApp" and not in the root of the app

Thank you very much for your help.


What I have tried:

I do not know what to do
Posted
Updated 24-Jun-21 20:13pm

1 solution

I'd strongly recommend to read this: Where Should I Store My Data?[^]

The way to get user documents folder is to use: Environment.GetFolderPath Method (System) | Microsoft Docs[^]
   
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900