REPOST: Manipulating Win32 attributes; newbie question.

Peter pcc at ecet.vtc.edu
Sun Dec 30 15:10:31 EST 2001


Hello! I'm new to Python although I have a fair amount of experience 
with other languages (C++, Java, some Perl). I'm working on the Windows 
platform with Python 2.0. I have Pythonwin installed.

My problem is that I need to manipulate some Win32 specific file 
attributes. In particular, I need to temporarly turn off the read-only 
attribute on a directory. In C I could use the Win32 API functions 
GetFileAttributes() and SetFileAttributes() to do this. I'm not sure how 
to get the job done with Python. I looked around in both the generic and 
Pythonwin documentation but I didn't see anything that addressed this 
issue.

TIA

Peter

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-nwblwi.newsops.execpc.com!newsfeeds.sol.net!news-out.visi.com!hermes.visi.com!nnxp1.twtelecom.net!newsfeed.cs.wisc.edu!enews.sgi.com!news-xfer.nuri.net!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: Peter <pcc at ecet.vtc.edu>
Newsgroups: comp.lang.python
Subject: cmsg cancel <MPG.16993ebe1fbc8b7c989685 at news.sover.net>
Control: cancel <MPG.16993ebe1fbc8b7c989685 at news.sover.net>
Date: Mon, 31 Dec 2001 02:17:42 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.MPG.16993ebe1fbc8b7c989685 at news.sover.net>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774094 27193 211.57.49.2 (31 Dec 2001 04:48:14 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 04:48:14 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list