[Tutor] Acessing files in Windows 2000

Eric Culpepper eculpepper at hcc-care.com
Tue Mar 8 23:43:14 CET 2005


Try something like this (change the username to the user you're logged in as, or Administrator if that's how you're logged in):

c:\\documents and settings\\<username|Administrator>\\my documents\\memo.txt


-----Original Message-----
From: tutor-bounces+eculpepper=hcc-care.com at python.org
[mailto:tutor-bounces+eculpepper=hcc-care.com at python.org]On Behalf Of
Dave S
Sent: Tuesday, March 08, 2005 4:24 PM
To: Python Tutor
Subject: [Tutor] Acessing files in Windows 2000


I have a script that converts data relating to my work.

It works great on my Linux system but some of my colleagues run windows. 
I am attempting to convert the file paths to windows but am having no luck.

I need to access 'memo.txt' in 'my documents' on windows & am struggling.
I have tried just about every combination of \ and / and \\ and // but 
to no avail.
I need something like ...

C:\My Documents\memo.txt

Can anyone advise me ?

Dave


_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list