File: cp.bat

package info (click to toggle)
ghostscript 10.07.0~dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 96,244 kB
  • sloc: ansic: 946,318; python: 7,917; cpp: 6,534; cs: 6,457; sh: 6,168; java: 4,028; perl: 2,373; tcl: 1,639; makefile: 539; awk: 66; yacc: 18
file content (14 lines) | stat: -rwxr-xr-x 333 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@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