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.

Developer technologies Windows Forms
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 90,521 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

  2. deskcheck1-0579 411 Reputation points
    2022-01-24T21:37:35.867+00:00
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.