[python-win32] Get Blank Lines in a text file

2008-07-03 Thread siddhartha veedaluru
Hi, As part of a task i need to verify that last line of a text file is blank. When i read that file, its getting ignored and i couldn't able to check that. Here is the code snippet that i used: import os iniFileName = "Config.ini" iniFile = open(iniFileName, 'r') lines = iniFile.readlines() noOf

Re: [python-win32] Netbios api

2008-07-03 Thread Michel Claveau
Bonjour ! Lorsque Windows démarre, les adaptateurs réseau (cartes) (et aussi les composants logiciels) sont initialisés parmi les derniers éléments. Or, tant que cette initialisation n'est pas faite, impossible de se connecter à un réseau. Il faut donc, avant de lancer un script de connexion,

[python-win32] Netbios api

2008-07-03 Thread le dahut
Hello, I'm looking for APIs to do some stuff like 'nbtstat' does. Does have any starting point ? Actually it is to force the resolving of the PDC name via his IP address to avoid messages like : "Domain is unavailable" if user logs on to fast after computer boot. It seems that windows need so