简体   繁体   中英

Concequence of using APPDATA in application run from USB

I'm using Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) in my application.

If the application is installed on a USB drive and run from there will it still be able to access this directory?

Will it be a directory on the host machine still, or will it be a directory on the USB drive?

Thanks

This will always be a directory on the machine.

ApplicationData is a folder where applications installed can use to store data which are profile-specific . So in contract to where they are installed (usually Program Files directory) which is not profile specific, this data will be different for each user logged on to the machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM