Fredrik Lundh wrote: > import os, re > > def uptime(): > return re.search( > "System Up Time:\s*(.+)", os.popen("systeminfo").read() > ).group(1) > > print uptime() Thanks, I'm learning a lot :-) Esmail