使用Python在Windows上执行Windowspipe理shell命令

我有一个使用Windows shell命令执行多个pipe理操作的批处理脚本。 脚本在Windows 7上运行良好,但是当我尝试从Python 2.6启动它时,什么都不会发生:

import os a = os.popen("somebatchfile.bat") 

我假设这是因为bat文件使用了几个需要pipe理权限的命令,但是我不想使用runas.exe提示input密码或者在代码中embedded密码。

有什么办法让UAC提示用户批准什么的?

相关?: https : //stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script