摘要: 在powershell上执行get-childitem * -include *.pyc -recurse |remove-item或者使用别名ls * -include *.pyc -recurse |rm 阅读全文
posted @ 2016-09-26 20:56 妙音 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 32位python在windows上调用命令行(os.system或subprocess.Popen)。执行后,如果返回码太大,python取得的返回值也是0。此时无法判断执行成功还是失败,这个是32位python的bug。以时间同步命令w32tm位例子在cmd上执行... 阅读全文
posted @ 2016-09-26 20:41 妙音 阅读(463) 评论(0) 推荐(0) 编辑
摘要: runas /noprofile /user:Administrator cmdrunas 允许用户用其它权限运行指定的工具和程序/noprofile 指定不应该加载用户的配置文件。/user:UserAccountName 指定在其下运行程序... 阅读全文
posted @ 2016-09-26 19:48 妙音 阅读(2516) 评论(0) 推荐(0) 编辑