You can get some special folders using the following code.
code:
var WSH = new ActiveXObject("WScript.Shell");
var folder = WSH.SpecialFolders(folderLookup);
folderLookup is a string and can be any of the following:
- AllUsersDesktop
- AllUsersStartMenu
- AllUsersPrograms
- AllUsersStartup
- Desktop
- Favorites
- Fonts
- MyDocuments
- NetHood
- PrintHood
- Programs
- Recent
- SendTo
- StartMenu
- Startup
- Templates
I think the reason for not allowing access to the likes of the system folder is primarily for security reasons.