[python-win32] Modify only the first line of a big file (Roughly 1.5MB - For thousands of file).

2009-05-03 Thread Khalid Moulfi
Hi all, I have thousands of file and I must update only the first line. My concern is : is it possible to read only the first line for each of these files and update the first line only without reading the file completely ? Version of Python is 2.2.1 Thanks for any help, KM

Re: [python-win32] python-win32 Digest, Vol 73, Issue 32

2009-04-30 Thread Khalid Moulfi
ethod in python > To: python-win32@python.org > Message-ID: <49f9c428.3080...@laposte.net> > Content-Type: text/plain; charset=ISO-8859-15; format=flowed > > Hello, > > "gpedit.msc" can change several parameters in system for example items > in start menu or hidden drives

[python-win32] Retrieve informations from NIST file.

2009-04-29 Thread Khalid Moulfi
Hello all, hope you'r all fine. Actually, I'm a little bit blocked. I have, let's say, thousands of file (NIST file). In the first line of all of them I have tag numbers plus many informations, even sometimes strange chararcters (Maybe Hexadecimal). A line can look like : 1.001:1.002:..

[python-win32] Wanted to get many kind of infos through Active directory.

2008-04-01 Thread Khalid MOULFI
Dear all, we have an active directory on win2000. We use Python 2.2.1. As more and more infos are in our AD, I would like to manage this AD database using Python scipts (Who are there?Which group?Create users?...) I used scripts of TJG (Tim) and I had the following : import active_directory me =