:Loop IF "%1"=="" GOTO Continue p4 revert %1 p4 edit %1 SHIFT GOTO Loop :Continue