What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Environment variables

Environment variables
Author: Message:
wincy
Junior Member
**


Posts: 67
Reputation: 4
35 / Male / Flag
Joined: Feb 2008
O.P. RE: Environment variables
quote:
Those are not environment variables; they are special folders that you can use SHGetFolderPath or SHGetKnownFolderPath

I meant "Special Folders" then, sorry!
I've been looking for hours on Internet in order to find something useful!

I would like to have outputs like this (for example):
C:\DOCUME~1\Vincy\IMPOST~1\DATIAP~1\MICROS~1
but i don't know how to do that.

I saw this:
HRESULT SHGetFolderPath(HWND hwndOwner, int nFolder, HANDLE hToken, DWORD dwFlags, LPTSTR pszPath);
but i'm not exactly understanding how to use that..!
Should i put it in a .vbs file?

Moreover, i found a way to do that with FSO:
var favfolderName=Shell.SpecialFolders("Favorites");
but it give an output like this:
C:\Documents and Settings\User\Favorites
and those paths containing spaces cannot be read by batch files.

This post was edited on 02-12-2009 at 09:51 PM by wincy.
02-12-2009 09:50 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Environment variables - by wincy on 02-12-2009 at 07:10 PM
RE: Environment variables - by matty on 02-12-2009 at 07:34 PM
RE: Environment variables - by wincy on 02-12-2009 at 09:50 PM
RE: Environment variables - by matty on 02-12-2009 at 10:37 PM
RE: Environment variables - by wincy on 02-12-2009 at 10:59 PM


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