Advertisement
Mastercpp

Untitled

Aug 4th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import os
  2.  
  3. comando = "systeminfo"
  4.  
  5. tubo = os.popen(comando)
  6.  
  7. datos = tubo.readlines()
  8.  
  9.  
  10. fichero = open("dat.txt" , "w")
  11. fichero.writelines(datos)
  12. fichero.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement