Size: 611
Comment:
|
Size: 151
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() |
My name is Twyla Kappel. I life in Vienne (France).<<BR>> <<BR>> Also visit my blog ... [[http://www.youtube.com/watch?v=nFkowIj9fis|Sing Lessons]] |
My name is Twyla Kappel. I life in Vienne (France).
Also visit my blog ... Sing Lessons