Get SystemDrive variable

JY Doyon jdoy23 at
Fri Jul 30 18:06:00 CEST 2004

Found it.

srcdrv = os.getenv("SystemDrive"). I forgot to put the quotes at first.


"JY Doyon" <jdoy23 at> a écrit dans le message de
news:_xtOc.26574$BU4.1267510 at
> I'm writing a script that copies all information from the "Documents and
> Settings" folder for backup purposes. My problem is that some machines
> the OS installed on a different drive than C:\. Is there any way to get
> environment variable "SystemDrive" with python?
> Thanks for the help

More information about the Python-list mailing list