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.