home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 March / VPR9703B.ISO / driver / wacom / tddv2432 / win / ntintel / copyserv.bat next >
DOS Batch File  |  1996-09-24  |  1KB  |  51 lines

  1. @echo off
  2. rem -------------------------------------------------------------
  3. rem Name : COPYSERV.BAT
  4. rem Purpose : Copies NT service executables.  Before copying,
  5. rem           turns off services.  After copying, turns services
  6. rem           back on.
  7. rem Usage : COPYSERV %1 %2 %3 %4
  8. rem         %1 - Source dir
  9. rem         %2 - Dest dir
  10. rem         %3 - if "1", then copy wacomkey.exe
  11. rem         %4 - if "1", then copy wintab32.exe
  12. rem Notes : Both wacomkey and wintab32 services need to be stopped.
  13. rem         The copy fails if MSSETUP copy functions are used.  The
  14. rem         services must be stopped/started from a DOS box.  It
  15. rem         fails if done from the control panel.
  16. rem Author : Jim Choate
  17. rem Modify : T. Kawasome
  18. rem History : 9/24/96.  Created.
  19. rem ------------------------------------------------------------
  20.  
  21. echo サービス関連のファイルを更新します。しばらくお待ちください。
  22.  
  23. if not "%3"=="1" goto SkipWacomkeyStop
  24.  
  25. net stop wacomkey
  26. del %2wacomkey.exe
  27.  
  28. :SkipWacomkeyStop
  29.  
  30. if not "%4"=="1" goto SkipWintab32Stop
  31.  
  32. net stop wintab32
  33. del %2wintab32.exe
  34.  
  35. :SkipWintab32Stop
  36.  
  37. ren %2wacomkey.tmp wacomkey.exe
  38. ren %2wintab32.tmp wintab32.exe
  39.  
  40. if not "%4"=="1" goto SkipWintab32Start
  41.  
  42. net start wintab32
  43.  
  44. :SkipWintab32Start
  45.  
  46. if not "%3"=="1" goto SkipWacomkeyStart
  47.  
  48. net start wacomkey
  49.  
  50. :SkipWacomkeyStart
  51.