每次当我卸载一个软件(Revo Uninstaller Pro),一个新的Windows还原点被创建,我想创建一个简单的脚本,我将把它放在我的桌面上,每次我点击它,我的Windows的还原点将被删除,但我不想完全禁用它,因为这很重要。
我已经问过Google了,但是我没有找到任何关于Python的东西。
有没有办法删除所有Windows的还原点?
发布于 2020-02-08 19:55:58
你不能直接用python来做这件事。您需要运行一个执行此操作的power shell脚本,并从python中调用它。
微软已经为您编写了power外壳脚本:https://gallery.technet.microsoft.com/scriptcenter/Script-to-delete-System-4960775a
如何从python Running powershell script within python script, how to make python print the powershell output while it is running调用power shell脚本
https://stackoverflow.com/questions/60126405
复制相似问题