Environment variables - Printable Version -Shoutbox (https://shoutbox.menthix.net) +-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58) +--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4) +---- Forum: Scripting (/forumdisplay.php?fid=39) +----- Thread: Environment variables (/showthread.php?tid=89134) Environment variables by wincy on 02-12-2009 at 07:10 PM
Hello everybody! RE: Environment variables by matty on 02-12-2009 at 07:34 PM
MSDN is your friend... quote:Those are not environment variables; they are special folders that you can use SHGetFolderPath or SHGetKnownFolderPath These are environment variables: RE: Environment variables by wincy on 02-12-2009 at 09:50 PM
quote: 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. RE: Environment variables by matty on 02-12-2009 at 10:37 PM
quote:You would just need to quotes around the string for it to be read. RE: Environment variables by wincy on 02-12-2009 at 10:59 PM
I know, but i have to do everything dinamically. |