@echo off REM Creates a RAR archive of 200MB parts for each of the arguments. REM Drag-n-drop can be used with any number of files or directories. call :loop %* goto :EOF :loop if "%~1"=="" goto :EOF "%ProgramFiles%\WinRAR\Rar.exe" a -k -y -rr -ep1 -m0 -v200000000b -w"%~dp1" "%~f1.rar" "%~f1" move "%~f1*.rar" "C:\UPLOAD" shift goto :loop