@ECHO OFF rem ============================= rem ======= Configuration ======= set gitpath=E: rem ============================= rem =========== Script ========== :Loop IF "%1"=="" GOTO Continue set strcp=%1 copy %1 %gitpath%%strcp:~8% SHIFT GOTO Loop :Continue