Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | @echo off |
2 | :: The redirs to nul are important. %2 can end up being an unterminated "'d | ||||
3 | :: string, so the remainder of the command line becomes the target file name, | ||||
4 | :: which in turn fails because it's a filename containing >, nul, etc. | ||||
5 | copy /y %1 %2 >nul 2>nul |