Get SystemDrive variable

JY Doyon jdoy23 at hotmail.com
Fri Jul 30 12:06:00 EDT 2004


Found it.

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

Thanks

"JY Doyon" <jdoy23 at hotmail.com> a écrit dans le message de
news:_xtOc.26574$BU4.1267510 at news20.bellglobal.com...
> 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