Windows Form App - VB.Net: Change default path of UserAppDataPath

deskcheck1-0579 411 Reputation points


I wanted to access the assembly but VS 2019 keeps saying :

Anyway, it seems I can't use that assembly because it's for UAW apps.

So my issue is:

I want users to store their data anywhere in their local computers, except C:\ Drive. The data are large and their C drives usually have limited memory, and reserved for applications.

How can I can change this path so users can specify their preferred drive\folder location just ONCE. So when they open the app the next time, they don't have to re-enter the data path.

Appreciate any help.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,819 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,361 Reputation points

    Special directories are stored in the registry :
    HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    But it is not recommended to change them...

    0 comments No comments