Differences between revisions 43 and 70 (spanning 27 versions)
Revision 43 as of 2008-12-18 15:22:48
Size: 611
Editor: kevinnewman
Comment:
Revision 70 as of 2014-08-04 00:55:33
Size: 151
Editor: january
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

FrontPage (last edited 2020-10-27 22:20:58 by albertosottile)