我正在将单个文件 update.ver 压缩为 update.rar 在命令行(批处理文件)中使用的 rar.exe 字典大小 1024KB 请帮我制作这个批处理文件
@echo off
REM Path to WinRAR executable in Program Files
set path="C:\Program Files\WinRAR\Rar.exe";%path%
echo 1. Compress files in dir individually (no subdirs)
echo.
echo.
set /P
if "%FILE%"=="1" goto indiv
REM Compress files in directory individually (no subdirectories)
:indiv
echo.
echo.
FOR %%i IN (*.*) do (
rar a "%%~ni" "%%i"
)
goto eof
:eof
endlocal
Erase v6.rar
Erase update.ver
rename update.rar update.ver
此代码在 windows vps 中不起作用