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

deskcheck1-0579 411 Reputation points
2022-01-23T16:16:40.683+00:00

Hi,

I wanted to access the Windows.storage.dll assembly but VS 2019 keeps saying :
167470-windowsstorage.png

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,831 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,736 Reputation points
    2022-01-23T18:14:55.397+00:00

    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