Post view page

Post #39

Special folders
2012-04-13 09:32:22

The below allows you to get a list of the special folders using powerscript...

Found: here

### Start of Script
### Get the list of special folders
$folders = [system.Enum]::GetValues([System.Environment+SpecialFolder])
# Display these folders
"Folder Name            Path"
"-----------            -----------------------------------------------"
foreach ($folder in $folders)
{ "{0,-22} {1,-15}"  -f $folder,[System.Environment]::GetFolderPath($folder)
}
#End of Script

Desktop                C:\Users\user_name\Desktop
Programs               C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
Personal               C:\Users\user_name\Documents
Personal               C:\Users\user_name\Documents
Favorites              C:\Users\user_name\Favorites
Startup                C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Recent                 C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Recent
SendTo                 C:\Users\user_name\AppData\Roaming\Microsoft\Windows\SendTo
StartMenu              C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Start Menu
MyMusic                C:\Users\user_name\Music
DesktopDirectory       C:\Users\user_name\Desktop
MyComputer
Templates              C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Templates
ApplicationData        C:\Users\user_name\AppData\Roaming
LocalApplicationData   C:\Users\user_name\AppData\Local
InternetCache          C:\Users\user_name\AppData\Local\Microsoft\Windows\Temporary Internet Files
Cookies                C:\Users\user_name\AppData\Roaming\Microsoft\Windows\Cookies
History                C:\Users\user_name\AppData\Local\Microsoft\Windows\History
CommonApplicationData  C:\ProgramData
System                 C:\Windows\system32
ProgramFiles           C:\Program Files
MyPictures             C:\Users\user_name\Pictures
CommonProgramFiles     C:\Program Files\Common Files

 

Test right content

first test

Test right content

second test

Test right content

third test

this is a test