win10下os.system模块运行winrar

2019-12-20  本文已影响0人  是东东
def make_rar():
    source_dir = f'C:/test'
    output_filename = 'xxx.rar'
    os.system(f'cd {source_dir} && C:/WinRAR/WinRAR.exe a -ibck {output_filename} {source_dir}')

参考:windows 命令行cmd 运行winrar

上一篇 下一篇

猜你喜欢

热点阅读