Re: [Py Windows] User Directory Path
- From: Wolfgang Strobl <news2@xxxxxxxxxxx>
- Date: Sat, 30 Apr 2005 21:25:46 +0200
"Zoool" <polykrom(at)belcenter(dot)com>:
>Is there a way to know the main directory path of a user session?
>I mean the "C:\Documents and Settings\username" Directory of the user logged
>into a windows session.
>>> from win32com.shell.shell import SHGetSpecialFolderPath
>>> from win32com.shell.shellcon import CSIDL_PROFILE
>>> SHGetSpecialFolderPath(0,shellcon.CSIDL_PROFILE)
u'C:\\Dokumente und Einstellungen\\wolfgang'
--
Wir danken für die Beachtung aller Sicherheitsbestimmungen
.
- References:
- [Py Windows] User Directory Path
- From: Zoool
- [Py Windows] User Directory Path
- Prev by Date: Re: User Directory Path
- Next by Date: Re: tkinter OptionMenu column break
- Previous by thread: Re: User Directory Path
- Next by thread: Re: array type casting problem in scipy.interpolate
- Index(es):