Change AppData purely manual methods do not accept written rebuttal!

For Windows users, the currently most popular operating system or win7, after the trend is definitely win10, but the test of time

I believe that when we use the windows system, has been a problem bothering everyone, including me

It is newly installed sys, both 98, Me, 2K, 03, xp, Vista, W2008, W7, W8, W10 or various time WinServer just Bahrain is particularly useful ( like the frontier of spring water is clear and pure ), but Pretty soon, there will boot slowly, more slowly after them

I am sure you PC controller's most troublesome problem than this, as long as the bid is forced rogue soft, non-optimized system, no matter how high your configuration, CPu how many cores are no good, you only have two crazy hair look dull eyes the PC, and want to do anything to hit, not hit and intractable heart of hate ------- ok ~ today to share a way to change the directory! Enter text

Each sys has AppData, the average user name is Administrator, by default, after boot into Win desktop, all started or run in the cache, temporary Temp, all kinds of software, appdata produced in User file folder

I have to Win7 for example (Win10 is the same directory)

After you log into Windows, all data generated by software running, roaming and non-roaming, each soft generate the corresponding directory have been written inside the red circle below this figure is by default C: \ user \ Aministrator

I have here is already the edited, Appdata means that the application data, it contains three subfolders local, locallow and roaming

 

  

These say that because these things at work, but you can not delete them, you are deleted can not afford 1, 2 will be deleted in the new, my point is, do not mess with you, not kill you I got you go to the local birds do not lay eggs

 In addition there are three things outside red folder inside casually deleted 

C: \ Users \ username \ AppData \ Local \ the Temp  inside the temporary file
C: \ Users \ username \ AppData \ Local \ in the Microsoft \ Windows \ the Temporary Internet Files  IE cache files (hidden by default) 
C: \ Users \ username \ AppData \ Local \ in the Microsoft \ Windows \ history  browser history (hidden by default) 

PC with a long time, space C is getting smaller and smaller, more and more card system is mainly because the user's AppData directory is growing, more and more things (in addition to win the temp and cache ie, do not understand the degree of your mother find it)

 C drive in my mind is pure Sys, can not hold things do not hold things (and I may be over the top for this comparison) 

Moving step 

First install a PE, Into the PE, manually copy the C: \ Users \ username \ to E: \ ( remember that the entire user name folder copied in its entirety , E: \ whatever you write D \ E \ F c on long leave ok. Do not look web postings move AppData folder, a temporary solution )

Into the registry to find the HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ Shell Folders

Shell Folders and modify User Shell Folders following values ​​is what we want to modify, you see the good that I have modified

 

  

 User Shell Folders   red box to the right value  % USERPROFILE% Difficulties

我们与其一个一个的改  %USERPROFILE%  不如直接改它的源头

找到 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList 

 把Profilelist 下的最长的两个目录里的值  这是我改好的,你们的应该是C:\user\administrator

 这里记录了系统中所有帐户的配置文件路径,分别在各个用户所对应的SID项之下,其中的“ProfileImagePath”

字符串值就是%USERPROFILE%的值了------千万注意,这里你改了之后就不用一个一个的去改了 

改完之后,重启一下,进系统后先把C:\user\administrator\AppData目录删除,如果能,直接把administrator目录给删了就行了

大功告成!! 

这样改完之后吗,只要你的电脑不中毒,空间充足,你老了,它也一直很年轻

顺便将三个注册表打包了,下面的代码你不想吐的话就不要看。直接复制我的就可以,把路径改成自己的就OK

  

 

Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,00,00
"Cache"=hex(2):45,00,3a,00,5c,00,54,00,65,00,6d,00,70,00,5c,00,49,00,6e,00,74,\
  00,65,00,72,00,6e,00,65,00,74,00,20,00,34,4e,f6,65,87,65,f6,4e,00,00
"Cookies"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,43,00,6f,00,6f,00,6b,00,69,00,65,00,73,00,00,00
"Desktop"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,44,00,65,00,73,00,6b,00,74,00,6f,00,70,00,00,00
"Favorites"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,74,00,65,00,73,\
  00,00,00
"History"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,\
  00,6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,\
  66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,48,00,69,\
  00,73,00,74,00,6f,00,72,00,79,00,00,00
"Local AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,\
  49,00,4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,\
  00,4c,00,6f,00,63,00,61,00,6c,00,00,00
"My Music"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,4d,00,75,00,73,00,69,00,63,00,00,00
"My Pictures"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,\
  00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,\
  00,00
"My Video"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,56,00,69,00,64,00,65,00,6f,00,73,00,00,00
"NetHood"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,20,00,53,00,68,00,6f,00,72,00,\
  74,00,63,00,75,00,74,00,73,00,00,00
"Personal"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,73,\
  00,00,00
"Programs"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,\
  72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,00,00
"Recent"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,00,\
  6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,\
  00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,\
  52,00,65,00,63,00,65,00,6e,00,74,00,00,00
"SendTo"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,00,\
  6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,\
  00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,\
  53,00,65,00,6e,00,64,00,54,00,6f,00,00,00
"Startup"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,\
  72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,53,00,74,00,61,00,72,00,74,\
  00,75,00,70,00,00,00
"Start Menu"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,\
  00,4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,\
  52,00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,\
  00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\
  5c,00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,00,00
"Templates"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,54,00,65,00,6d,00,70,00,6c,00,61,00,74,00,65,00,73,00,00,00
"{374DE290-123F-4565-9164-39C4925E467B}"=hex(2):25,00,55,00,53,00,45,00,52,00,\
  50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,44,00,6f,00,77,00,6e,\
  00,6c,00,6f,00,61,00,64,00,73,00,00,00
"PrintHood"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,50,00,72,00,69,00,6e,00,74,00,65,00,72,00,20,00,53,00,68,00,6f,00,72,00,\
  74,00,63,00,75,00,74,00,73,00,00,00
 
 
 
Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"!Do not use this registry key"="Use the SHGetFolderPath or SHGetKnownFolderPath function instead"
"AppData"="E:\\administrator\\AppData\\Roaming"
"Local AppData"="E:\\administrator\\AppData\\Local"
"My Video"="E:\\administrator\\Videos"
"{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Libraries"
"My Pictures"="E:\\administrator\\Pictures"
"Desktop"="E:\\administrator\\Desktop"
"History"="E:\\administrator\\AppData\\Local\\Microsoft\\Windows\\History"
"NetHood"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Network Shortcuts"
"{56784854-C6CB-462B-8169-88E350ACB882}"="E:\\administrator\\Contacts"
"Cookies"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Cookies"
"Favorites"="E:\\administrator\\Favorites"
"SendTo"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\SendTo"
"Start Menu"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu"
"My Music"="E:\\administrator\\Music"
"Programs"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs"
"Recent"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Recent"
"CD Burning"="E:\\administrator\\AppData\\Local\\Microsoft\\Windows\\Burn\\Burn"
"PrintHood"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Printer Shortcuts"
"{7D1D3A04-DEBB-4115-95CF-2F29DA2920DA}"="E:\\administrator\\Searches"
"{374DE290-123F-4565-9164-39C4925E467B}"="E:\\administrator\\Downloads"
"{A520A1A4-1780-4FF6-BD18-167343C5AF16}"="E:\\administrator\\AppData\\LocalLow"
"Startup"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup"
"Administrative Tools"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Administrative Tools"
"Personal"="E:\\administrator\\Documents"
"{BFB9D5E0-C6A9-404C-B2B2-AE6DB6AF4968}"="E:\\administrator\\Links"
"Cache"="E:\\Temp\\Internet 临时文件"
"Templates"="E:\\administrator\\AppData\\Roaming\\Microsoft\\Windows\\Templates"
"{4C5C32FF-BB9D-43B0-B5B4-2D72E54EAAA4}"="E:\\administrator\\Saved Games"
"Fonts"="C:\\Windows\\Fonts"
"administrator Video"="E:\\administrator\\Videos"
"administrator Pictures"="E:\\administrator\\Pictures"
"administrator Music"="E:\\administrator\\Music"
 
 
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList]
"ProfilesDirectory"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,\
  00,69,00,76,00,65,00,25,00,5c,00,55,00,73,00,65,00,72,00,73,00,00,00
"Default"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,\
  76,00,65,00,25,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,44,00,65,00,66,\
  00,61,00,75,00,6c,00,74,00,00,00
"Public"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,00,76,\
  00,65,00,25,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,50,00,75,00,62,00,\
  6c,00,69,00,63,00,00,00
"ProgramData"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,44,00,72,00,69,\
  00,76,00,65,00,25,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,6d,00,44,00,\
  61,00,74,00,61,00,00,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18]
"Flags"=dword:0000000c
"State"=dword:00000000
"RefCount"=dword:00000001
"Sid"=hex:01,01,00,00,00,00,00,05,12,00,00,00
"ProfileImagePath"=hex(2):25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,\
  00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,\
  5c,00,63,00,6f,00,6e,00,66,00,69,00,67,00,5c,00,73,00,79,00,73,00,74,00,65,\
  00,6d,00,70,00,72,00,6f,00,66,00,69,00,6c,00,65,00,00,00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-19]
"ProfileImagePath"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\
  00,73,00,5c,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,50,00,72,00,6f,00,\
  66,00,69,00,6c,00,65,00,73,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,53,00,65,\
  00,72,00,76,00,69,00,63,00,65,00,00,00
"Flags"=dword:00000000
"State"=dword:00000000
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-20]
"ProfileImagePath"=hex(2):43,00,3a,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,\
  00,73,00,5c,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,50,00,72,00,6f,00,\
  66,00,69,00,6c,00,65,00,73,00,5c,00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,\
  00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,00,00
"Flags"=dword:00000000
"State"=dword:00000000
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-3880342755-295460319-945441334-1000]
"ProfileImagePath"=hex(2):45,00,3a,00,5c,00,41,00,64,00,6d,00,69,00,6e,00,69,\
  00,73,00,74,00,72,00,61,00,74,00,6f,00,72,00,00,00
"Flags"=dword:00000000
"State"=dword:00000100
"Sid"=hex:01,05,00,00,00,00,00,05,15,00,00,00,e3,54,49,e7,df,5d,9c,11,36,4a,5a,\
  38,e8,03,00,00
"ProfileLoadTimeLow"=dword:00000000
"ProfileLoadTimeHigh"=dword:00000000
"RefCount"=dword:00000001
"RunLogonScriptSync"=dword:00000000
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-3880342755-295460319-945441334-500]
"ProfileImagePath"=hex(2):45,00,3a,00,5c,00,41,00,64,00,6d,00,69,00,6e,00,69,\
  00,73,00,74,00,72,00,61,00,74,00,6f,00,72,00,00,00
"Flags"=dword:00000000
"State"=dword:00000100
"Sid"=hex:01,05,00,00,00,00,00,05,15,00,00,00,e3,54,49,e7,df,5d,9c,11,36,4a,5a,\
  38,f4,01,00,00
"ProfileLoadTimeLow"=dword:00000000
"ProfileLoadTimeHigh"=dword:00000000
"RefCount"=dword:00000001
"RunLogonScriptSync"=dword:00000000

  

普及一下小知识

 常用:

%USERPROFILE% =C:\Users\用户名

%SystemRoot% =C:\WINDOWS

%SystemDrive% =C:

%APPDATA% =C:\Users\用户名\AppData\Roaming

%LOCALAPPDATA% =C:\Users\用户名\AppData\Local

%windir% =C:\WINDOWS

%Path% =C:\Windows\system32;C:\Windows; 

%ProgramData% =C:\ProgramData

%ProgramFiles% =C:\Program Files

%ProgramFiles(x86)% =C:\Program Files (x86)

 

以上全部手写,良心大作,如有雷同,绝不可能!

 

Guess you like

Origin www.cnblogs.com/zs0322/p/12289403.html