Differences between revisions 43 and 63 (spanning 20 versions)
Revision 43 as of 2008-12-18 15:22:48
Size: 611
Editor: kevinnewman
Comment:
Revision 63 as of 2014-01-22 21:52:10
Size: 302
Editor: IrmaM72
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()
Мy namе: Irma Dymock<<BR>>
My age: 24<<BR>>
Country: Great Britain<<BR>>
Home town: Blair's Ferry <<BR>>
ZIP: Pa21 9qn<<BR>>
Street: 78 Thirsk Road<<BR>>
<<BR>>
Here is my blog post; [[http://servicenetnationalelandschappen.nl/includes/forum/index.php?a=member&m=123436|Geburtstagswünsche]]

Мy namе: Irma Dymock
My age: 24
Country: Great Britain
Home town: Blair's Ferry
ZIP: Pa21 9qn
Street: 78 Thirsk Road

Here is my blog post; Geburtstagswünsche

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