Get SystemDrive variable

Pierre-Frédéric Caillaud peufeu at free.fr
Sun Aug 1 07:31:12 EDT 2004


	Not only that, but different versions of Windows have it in a different  
place. Sometimes it's in c:\windows\mydocuments or something. You better  
get the folder path for Documents and Settings from the registry rather  
than starting from C:

On Fri, 30 Jul 2004 11:10:50 -0400, JY Doyon <jdoy23 at hotmail.com> wrote:

> I'm writing a script that copies all information from the "Documents and
> Settings" folder for backup purposes. My problem is that some machines  
> have
> the OS installed on a different drive than C:\. Is there any way to get  
> the
> environment variable "SystemDrive" with python?
>
> Thanks for the help
>
>




More information about the Python-list mailing list