What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » How to obtain the Desktop path

How to obtain the Desktop path
Author: Message:
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
36 / Male / Flag
Joined: Jan 2006
RE: How to obtain the Desktop path
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.
[Image: markee.png]
08-08-2007 11:40 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
How to obtain the Desktop path - by johny65 on 08-08-2007 at 11:27 PM
RE: How to obtain the Desktop path - by mondator on 08-08-2007 at 11:38 PM
RE: How to obtain the Desktop path - by markee on 08-08-2007 at 11:40 PM
RE: How to obtain the Desktop path - by -dt- on 08-09-2007 at 02:38 AM
RE: How to obtain the Desktop path - by johny65 on 09-10-2007 at 01:08 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On