PDA

View Full Version : Shell Folder 'constants' - santas little helper


SUF6NEWBIE
12-06-2004, 12:13 PM
Cooked up this while action to cycle through and return the
'shell folder constants' for current OS..gives you some more to play with
when using the Shell.GetFolder action

x = 0; --start
while x <= 60 do
shellPath = Shell.GetFolder(x);
if (shellPath ~= "") then
TextFile.WriteFromString(_TempFolder.."\\ShellLocs.txt", "\r\nSHFnum: "..x.." -Shell folder: "..shellPath, true);
end
x = x +1;
end

When done just check the temp folder to retrieve the discovered data
could be handy...some OSs may return additional folders ..so be carefull
if end up using in an app