Differences between revisions 5 and 43 (spanning 38 versions)
Revision 5 as of 2003-08-08 12:07:59
Size: 1721
Editor: anonymous
Comment: missing edit-log entry for this revision
Revision 43 as of 2008-12-18 15:22:48
Size: 611
Editor: kevinnewman
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
##language:en
#pragma section-numbers off
# cmd.py
# ^^^^^^
# Mimics the windows command line. Good if the system admin has locked it off.
# Made for Windows XP
Line 4: Line 6:
= MoinMoin Wiki = import os
Line 6: Line 8:
CtypesModule

A WikiWikiWeb is a collaborative hypertext environment, with an emphasis on easy access to and modification of information. This wiki can also link to InterWiki space.

MoinMoin is a Python Wiki:WikiClone, based on Wiki:PikiPiki. The name is a common German slang expression explained on the MoinMoin page. If you run a Wiki using MoinMoin, please add it to the MoinMoin:MoinMoinWikis page. Contributed code is on the MoinMoin:MacroMarket, MoinMoin:ActionMarket and MoinMoin:ParserMarket pages. For more details and further topics, see the MoinMoin page.

----
You can edit any page by pressing the link at the bottom of the page. Capitalized words joined together form a WikiName, which hyperlinks to another page. The highlighted title searches for all pages that link to the current page. Pages which do not yet exist are linked with a question mark: just follow the link and you can add a definition.

To get an overview over this site and what it contains, see the SiteNavigation page.

To learn more about what a WikiWikiWeb is, read about MoinMoin:WhyWikiWorks and the MoinMoin:WikiNature. Also, consult the MoinMoin:WikiWikiWebFaq.

----
Interesting starting points:
  * RecentChanges: see where people are currently working
  * HelpForBeginners: to get you going
  * WikiSandBox: feel free to change this page and experiment with editing
  * FindPage: search or browse the database in various ways
Exits from this wiki:
  * [http://www.python.org/ Python homepage]
  * [http://starship.python.net/crew/theller/ctypes/ ctypes homepage]
  * [http://starship.python.net/crew/theller/py2exe/ py2exe homepage]
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()

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()

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