Size: 611
Comment:
|
Size: 266
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
# cmd.py # ^^^^^^ # Mimics the windows command line. Good if the system admin has locked it off. # Made for Windows XP import os command = "" wd = os.getcwd() print "Shell Window Replacement by fatalGlory" print "^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^" print "" while command != "exit": command = raw_input("" + wd + ">") if command.split(" ")[0] == "cd": try: os.chdir(command.split(" ")[1]) wd = os.getcwd() except: print "Bad command or file name." else: cmd2 = os.popen(command) print cmd2.read() |
I'm Lucretia and I live with my husband and our 3 children in Warrubullen, in the QLD south area. My hobbies are Shortwave listening, Driving and Meteorology.<<BR>> <<BR>> Feel free to visit my weblog; [[http://frasesconvite.com.br|frases de convite de 15 anos]] |
I'm Lucretia and I live with my husband and our 3 children in Warrubullen, in the QLD south area. My hobbies are Shortwave listening, Driving and Meteorology.
Feel free to visit my weblog; frases de convite de 15 anos