Saving Files Under Windows

JanC usenet_spam at janc.invalid
Sat Jun 14 21:28:48 EDT 2003


achrist at easystreet.com schreef:

> The two functions for clients to call are GetSharedOutputDir()
> and GetUserOutputDir().  If you are running on a pre-Win2K 
> OS, you've got to create a function GetRegistryAppDataDir() to
> return wherever the installer or equivalent thought the data
> should go.  Presumably this will work ok, because if the user
> moves the data, they will also change the registry setting (maybe).
> For win2K or newer, we read the Shell Folders and go from there.

My Win98SE system with MSIE 5.5 & Office 2K installed and using a login 
name has:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
- AppData
- Local AppData
- Personal

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\explorer\Shell Folders
- Common AppData
- Personal


But I'm almost sure a "virgin" Win98SE (or earlier) install doesn't have 
all of these keys...

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9




More information about the Python-list mailing list