Differences between revisions 23 and 43 (spanning 20 versions)
Revision 23 as of 2004-09-27 08:11:28
Size: 4292
Editor: 221
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://wxwz.51.net/mu/ MTV]
[http://www3.caishow.com/music_send/music_list.asp?f=1921 互动点歌]
[http://my.nbip.net/homepage/nblulei/zzzx.htm 装修]
[http://my.nbip.net/homepage/nblulei/zzzc.htm 足彩]
[http://my.nbip.net/homepage/nblulei/zzks.htm 考试]
[http://my.nbip.net/homepage/nblulei/zzcw.htm 宠物]
[http://my.nbip.net/homepage/nblulei/zzfs.htm 风水]
[http://my.nbip.net/homepage/nblulei/hddg.htm 手机点歌]
[http://my.nbip.net/homepage/nblulei/zzsj.htm 手机屏保]
[http://my.nbip.net/homepage/nblulei/zzjs.htm 军事]
[http://my.nbip.net/homepage/nblulei/zzqq.htm QQ]
[http://my.nbip.net/homepage/nblulei/zzdz.htm 金点子]
[http://wxwz.atspace.com/cp.htm 彩票]
[http://wxwz.atspace.com/hc.htm 红尘]
[http://wxwz.atspace.com/lq.htm 篮球]
[http://wxwz.atspace.com/ly.htm 旅游]
[http://wxwz.atspace.com/mrzg.htm 增高美容]
[http://wxwz.atspace.com/mxxz.htm 明星写真]
[http://wxwz.atspace.com/php.htm PHP]
[http://wxwz.atspace.com/tk.htm 图库]
[http://wxwz.atspace.com/ttyy.htm 天天音乐]
[http://wxwz.atspace.com/wljc.htm 网络知识]
[http://wxwz.atspace.com/zctj.htm 足彩推介]
[http://wxwz.atspace.com/xh/ 笑话]
[http://wxwz.atspace.com/dz/ 点子]
[http://wxwz.atspace.com/flash/ flash]
[http://wxwz.atspace.com/zy/ 中医]
[http://wxwz.atspace.com/yy/ 音乐]
[http://wxwz.atspace.com/fs/ 风水]
[http://wxwz.atspace.com/gw/ 古玩]
[http://wxwz.atspace.com/zx/ 装修]
[http://wxwz.atspace.com/cw/ 宠物]
[http://wxwz.atspace.com/ks/ 考试]
[http://wxwz.atspace.com/sjpb/ 手机]
[http://wxwz.atspace.com/qg/ 气功]
[http://wxwz.atspace.com/hb/ 货币]
[http://wxwz.atspace.com/bsgz/ 裁判]
[http://wxwz.atspace.com/js/ 军事]
[http://wxwz.atspace.com/pt/ 烹调]
[http://wxwz.atspace.com/xq/ 象棋]
[http://wxwz.atspace.com/zc/ 足彩]
[http://wxwz.atspace.com/qq/ QQ]
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)