For Each x In GetType(System.Environment.SpecialFolder).GetEnumValues Debug.Print("{0} {1}", [Enum].GetName(GetType(System.Environment.SpecialFolder), x), System.Environment.GetFolderPath(x)) Next
打印结结果
Desktop C:\Users\Administrator\Desktop Programs C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs MyDocuments D:\My Documents MyDocuments D:\My Documents Favorites D:\Favorites Startup C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup Recent C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Recent SendTo C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\SendTo StartMenu C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu MyMusic D:\mp3 MyVideos C:\Users\Administrator\Videos DesktopDirectory C:\Users\Administrator\Desktop MyComputer NetworkShortcuts C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Network Shortcuts Fonts C:\Windows\Fonts Templates C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Templates CommonStartMenu C:\ProgramData\Microsoft\Windows\Start Menu CommonPrograms C:\ProgramData\Microsoft\Windows\Start Menu\Programs CommonStartup C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup CommonDesktopDirectory C:\Users\Public\Desktop ApplicationData C:\Users\Administrator\AppData\Roaming PrinterShortcuts C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Printer Shortcuts LocalApplicationData C:\Users\Administrator\AppData\Local InternetCache C:\Users\Administrator\AppData\Local\Microsoft\Windows\Temporary Internet Files Cookies C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Cookies History C:\Users\Administrator\AppData\Local\Microsoft\Windows\History CommonApplicationData C:\ProgramData Windows C:\Windows System C:\Windows\system32 ProgramFiles C:\Program Files (x86) MyPictures D:\我的图片 UserProfile C:\Users\Administrator SystemX86 C:\Windows\SysWOW64 ProgramFilesX86 C:\Program Files (x86) CommonProgramFiles C:\Program Files (x86)\Common Files CommonProgramFilesX86 C:\Program Files (x86)\Common Files CommonTemplates C:\ProgramData\Microsoft\Windows\Templates CommonDocuments C:\Users\Public\Documents CommonAdminTools C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools AdminTools C:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools CommonMusic C:\Users\Public\Music CommonPictures C:\Users\Public\Pictures CommonVideos C:\Users\Public\Videos Resources C:\Windows\resources LocalizedResources CommonOemLinks CDBurning C:\Users\Administrator\AppData\Local\Microsoft\Windows\Burn\Burn