home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 328_01 / wcopysrc.bat < prev    next >
DOS Batch File  |  1990-12-11  |  823b  |  39 lines

  1. @echo off
  2. ECHO this batch file copies SOURCE files for windows to A: B: or C:
  3. ECHO parameter 1: drive, default=a: (must specify letter, colon)
  4. ECHO parameter 2: switch for xcopy  (specify /d:mm-dd-yy)
  5. set dr=A:
  6. if NOT (%1) == () set dr=%1
  7.  
  8. if (%1) == (A:) goto :OK
  9. if (%1) == (a:) goto :OK
  10. if (%1) == (B:) goto :OK
  11. if (%1) == (b:) goto :OK
  12. if (%1) == (C:) goto :OK
  13. if (%1) == (c:) goto :OK
  14. ECHO ILLEGAL DRIVE SPECIFICATION ( a: b: or c: only )
  15. goto :quit
  16.  
  17. :OK
  18.  
  19. echo PLACE SOURCE DISK IN DRIVE, PRESS ANY KEY
  20. PAUSE
  21.  
  22. xcopy w*.c            %dr% %2
  23. xcopy makehx.c         %dr% %2
  24. xcopy txt2mcr.c     %dr% %2
  25. xcopy dir2bat.c     %dr% %2
  26. xcopy *.h*            %dr% %2
  27. xcopy header.src    %dr%readme %2
  28. xcopy *.doc         %dr% %2
  29. xcopy demo*.c        %dr% %2
  30. xcopy demo*.prj        %dr% %2
  31. xcopy *.bat            %dr% %2 
  32.  
  33.  
  34.  
  35. :QUIT
  36. set dr=
  37. exit
  38.  
  39.