代码片段如下:
import os
a= "\\"
path=r"C:"+a+"Windows"+a+"System32"
print "\n path :",path
os.chdir('C:')
os.path.abspath(path)
os.chdir(path)
print os.getcwd()
os.system('PNPUTIL.exe')
结果 :
path : C:\Windows\System32
C:\Windows\System32
'PNPUTIL.exe' is not recognized as an internal or external command,
operable program or batch file.
尽管该实用程序可用,但无法识别,可能是问题吗?