Archive: How to get the All Users Directory


How to get the All Users Directory
How to get the All User Folder?
"{OS Drive}:\WINDOWS\All Users" in Win9x,Me
and
"{OS Drive}:\Documents and Settings\All Users" in WinXP,2000... :D:D:D


there are two ways:

the first way is to "SetShellVarContext All"

and then use the VARs like $DESKTOP to put a File in the "All Users\Desktop" Directory

alternative you can read these Variables from the registry

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion" is a nice example where you find a few paths and settings

hope this helps ;)

Dave


is there a single code to that (in all OS's)? :rolleyes::rolleyes::rolleyes:


That's the code for all OS.


thnx alot! ;):up: