Advertisement
opexxx

Common folder variables

Apr 22nd, 2014
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.38 KB | None | 0 0
  1. Common folder variables
  2.  
  3. A variable folder is a folder that might refer to different places on different PCs.
  4.  
  5. The opposite of a variable folder is a hardcoded folder, which is always in the same place on every PC.
  6.  
  7. The default locations of the variable folders that we use in our encyclopedia are listed on this page.
  8.  
  9. You can find the location of a variable folder that starts and ends with %:
  10.  
  11.     Open a Windows Explorer window (the keyboard shortcut is Windows logo key+E).
  12.  
  13.     Type the name of the variable in the address bar, including the % sign at the start and end of the variable (such as %APPDATA%). Press Enter.
  14.  
  15.     The location of that variable on your PC will be shown. This may change between different PCs.
  16.  
  17.     This will not work for variables that do not start and end with %, such as <system folder> or <start menu>. Instead, your Internet browser will open search the web for the variable.
  18.  
  19. Malware will often use a variable folder when it tries to access, change, or create files and folders on your PC.
  20.  
  21. In Windows 8.1, Windows 7, and Windows Vista, variable folders are called known folders.
  22.  
  23. In Windows 2003, XP, and 2000, variable folders are called CSIDL values.
  24.  
  25. %ALLUSERPROFILE%     
  26. Windows 2000, XP, and 2003  C:\Documents and Settings\All Users
  27. Windows Vista, 7, and 8 Referred to as %ProgramData%
  28. %APPDATA%    
  29. Windows 2000, XP, and 2003  C:\Documents and Settings\<user name>\Application Data
  30. Windows Vista, 7, and 8 C:\Users\<user name>\AppData\Roaming
  31. <commonappdata>  
  32. Windows 2000, XP, and 2003  C:\Documents and Settings\All Users\Application Data
  33. Windows Vista, 7, and 8 C:\ProgramData
  34. %CommonProgramFiles%     
  35. Windows 2000, XP, and 2003  C:\Program Files\Common Files
  36. Windows Vista, 7, and 8 C:\Program Files\Common Files
  37. %HOMEPATH%   
  38. Windows 2000, XP, and 2003  \Documents and Settings\<user name>
  39. Windows Vista, 7, and 8 \Users\<user name>
  40. %LOCALAPPDATA%   
  41. Windows 2000, XP, and 2003  C:\Documents and Settings\<user name>\Local Settings\Application Data
  42. Windows Vista, 7, and 8 C:\Users\<user name>\AppData\Local
  43. %ProgramData%    
  44. Windows 2000, XP, and 2003  Referred to as %ALLUSERPROFILE%
  45. Windows Vista, 7, and 8 C:\ProgramData
  46. %ProgramFiles%   
  47. Windows 2000, XP, and 2003  C:\Program Files or C:\Program Files (x86)
  48. Windows Vista, 7, and 8 C:\Program Files or C:\Program Files (x86)
  49. %PUBLIC%     
  50. Windows 2000, XP, and 2003  N/A
  51. Windows Vista, 7, and 8 C:\Users\Public
  52. <start menu>     
  53. Windows 2000, XP, and 2003  C:\Documents and Settings\<user name>\Start Menu or
  54. C:\Users\<user name>\Start Menu
  55. Windows Vista, 7, and 8 C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu
  56. <startup folder>     
  57. Windows 2000, XP, and 2003  C:\Documents and Settings\<user name>\Start Menu\Programs\Startup
  58. Windows Vista, 7, and 8 C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
  59. %SystemDrive%    
  60. Windows 2000, XP, and 2003  C:
  61. Windows Vista, 7, and 8 C:
  62. <system folder>  
  63. Windows 2000, XP, and 2003  C:\WinNT\System32
  64. Windows Vista, 7, and 8 C:\Windows\System32
  65. %SystemRoot%     
  66. Windows 2000, XP, and 2003  C:\Windows
  67. Windows Vista, 7, and 8 C:\Windows
  68. %TEMP%   
  69. Windows 2000, XP, and 2003  C:\DOCUME~1\<user name>\LOCALS~1\Temp
  70. Windows Vista, 7, and 8 C:\Users\<user name>\AppData\Local\Temp
  71. %USERPROFILE%    
  72. Windows 2000, XP, and 2003  C:\Documents and Settings\<user name> or
  73. C:\Users\<user name>
  74. Windows Vista, 7, and 8 C:\Users\<user name>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement