Vista / Windows 7
In Vista and Windows 7 editions application data is organized into two folders namely
local and
roaming. The default
appdata registry key points to the roaming folder location where as a new registry value '
Local Appdata' is introduced to point to the local appdata folder.
In Windows 7 we can change application data folders location using GUI also. You can open application data folder by running
appdata from Run window. right click on the folder for which you want to change the location, click on location tab and specify the new path of the folder.
As with Windows XP, we can change the location by editing registry key too.
To change local application data folder we need to run the below command.
reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "Local Appdata" /t REG_SZ /d /f
To change roaming application data folder the command is:
reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Appdata /t REG_SZ /d /f