find network drives, win

Tim Keating spike at rollerfeet.com
Mon Nov 5 16:06:44 EST 2001


stojek at part-gmbh.de (Marcus Stojek) wrote in message news:<3be6c267.21367859 at news.easynews.net>...

> under windows I have to find out for a given path whether 
> the drive is local or a network drive (is "mounted" the right word for
> this?)
> I tried:

> for l in string.uppercase:
>     d=l+":/"

Try:

for l in string.uppercase:
    d=l+":\\"

That may not get you all of what you want, but it will get you closer.

TK



More information about the Python-list mailing list