uptime for Win XP?

Brad Tilley rtilley at vt.edu
Sun Dec 12 17:47:33 EST 2004


Fredrik Lundh wrote:
> Brad Tilley wrote
> 
> 
>>Just run the built-in Windows utility 'systeminfo' from a cmd prompt.
> 
> 
> you're a bit late, aren't you?
> 
> 
>>for line in data:
>>   if line contains "System Up Time":
>>      print line
> 
> 
> what Python version is this?

Sorry, lang mix-up:

x = "System Up Time"
if x in line:
    print line



More information about the Python-list mailing list