batch params code example Example: run bat file with arguments echo off set arg1=%1 set arg2=%2 shift shift fake-command /u %arg1% /p %arg2% %*