我正在尝试创建一个批处理文件,该文件使用 WinRAR 将 .rar 文件提取到 C:\Program Files\
请帮忙
我尝试了以下代码
set rar=%ProgramFiles%\WinRAR\RAR.exe
set unrar=%programFiles%\WinRAR\UnRAR.exe
Run Code Online (Sandbox Code Playgroud)
然后像这样压缩:
"%rar%" a "drop location" "target location"
Run Code Online (Sandbox Code Playgroud)
或者像这样解压:
%unrar% e "target location"
Run Code Online (Sandbox Code Playgroud)
但我似乎没有在这里看到显示目标 rar 文件在哪里的选项。请帮我。
batch-file ×1