Differences between revisions 15 and 43 (spanning 28 versions)
Revision 15 as of 2004-08-31 07:56:11
Size: 2107
Editor: 202
Comment:
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:
= This Site = import os
Line 6: Line 8:
== Ctypes ==
CtypesModule is the brainstorming and development area for the [http://starship.python.net/crew/theller/ctypes/ ctypes module].

== py2exe ==
Py2Exe is the corresponding start page for the [http://starship.python.net/crew/theller/py2exe/ py2exe tool].




= Other Sites =

== what is this Wikithing? ==
----
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

----
/!\ MoinMoin:AntiSpamGlobalSolution and full text search here for manga and teenz.
[http://my.nbip.net/homepage/nblulei/zxdqdx.htm]
[http://my.nbip.net/homepage/nblulei/zcx.htm]
[http://my.nbip.net/homepage/nblulei/zdy.htm]
[http://my.nbip.net/homepage/nblulei/zbt.htm]
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)