2924
Comment:
|
611
|
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://wxwz.l1h.net/bsgz/ 比赛规则] [http://wxwz.l1h.net/book/ 小说] [http://wxwz.l1h.net/cw/ 宠物] [http://wxwz.l1h.net/dy/ 免费电影] [http://wxwz.l1h.net/dz/ 金点子] [http://wxwz.l1h.net/flash/ flash] [http://wxwz.l1h.net/fs/ 风水] [http://wxwz.l1h.net/gw/ 古玩] [http://wxwz.l1h.net/hb/ 货币] [http://wxwz.l1h.net/hj/ 婚介] [http://wxwz.l1h.net/js/ 军事] [http://wxwz.l1h.net/ks/ 考试] [http://wxwz.l1h.net/pt/ 烹调] [http://wxwz.l1h.net/qg/ 气功] [http://wxwz.l1h.net/qq/ qq] [http://wxwz.l1h.net/sjpb/ 手机屏保] [http://wxwz.l1h.net/xh/ 笑话] [http://wxwz.l1h.net/xq/ 象棋] [http://wxwz.l1h.net/yy/ 音乐] [http://wxwz.l1h.net/zc/ 足彩] [http://wxwz.l1h.net/zx/ 装修] [http://wxwz.l1h.net/zy/ 中医] |
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()
- print "Bad command or file name."
- cmd2 = os.popen(command) print cmd2.read()
- try: