Duplicate:
The following will work for args with ", =, ' '. Based on Dmitry Sokolov answer. Fixed issue when second arg is the same as first arg.
@echo off echo %* set _tail=%* call set _tail=%%_tail:*%1=%% echo %_tail%