summaryrefslogtreecommitdiff
path: root/gs/src/cp.bat
blob: 67ff19bf275dfbd67cf43e8b117079b1f823f19d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@rem $Id$
@echo off
if "%2"=="." goto ne
if exist _.tmp erase _.tmp
rem	Both of the following lines are necessary:
rem	the first one works on MS DOS and Windows 95/98 but not Windows NT,
rem	the second works on Windows NT but not the other MS OSs.
rem > _.tmp
copy nul: _.tmp > nul:
copy /B %1+_.tmp %2
erase _.tmp
goto x
:ne
copy /B %1 %2
:x