xref: /plan9/sys/src/cmd/gs/src/cp.bat (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1@rem $Id: cp.bat,v 1.3 2002/02/21 22:24:51 giles Exp $
2@echo off
3if "%2"=="." goto ne
4if exist _.tmp erase _.tmp
5rem	Both of the following lines are necessary:
6rem	the first one works on MS DOS and Windows 95/98 but not Windows NT,
7rem	the second works on Windows NT but not the other MS OSs.
8rem > _.tmp
9copy nul: _.tmp > nul:
10copy /B %1+_.tmp %2
11erase _.tmp
12goto x
13:ne
14copy /B %1 %2
15:x
16