我能在windows(7)中解除阻止一个文件吗?这个文件被windows(从互联网下载)从python脚本自动阻止?遇到这样的文件时会引发WindowsError。我想捕捉这个异常,然后运行一个powershell脚本,它的内容如下:
Parameter Set: ByPath
Unblock-File [-Path] <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: ByLiteralPath
Unblock-File -LiteralPath <String[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
我不懂powershell脚本。但如果我有一个,我可以从python中调用它。你们能帮忙吗?在
是的,您只需从Python调用以下命令行:
相关问题 更多 >
编程相关推荐