home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 July
/
VPR9707B.ISO
/
DRIVER
/
WACOM
/
TD982433
/
WIN
/
NTINTEL
/
COPYSERV.BAT
next >
Wrap
DOS Batch File
|
1996-09-24
|
1KB
|
51 lines
@echo off
rem -------------------------------------------------------------
rem Name : COPYSERV.BAT
rem Purpose : Copies NT service executables. Before copying,
rem turns off services. After copying, turns services
rem back on.
rem Usage : COPYSERV %1 %2 %3 %4
rem %1 - Source dir
rem %2 - Dest dir
rem %3 - if "1", then copy wacomkey.exe
rem %4 - if "1", then copy wintab32.exe
rem Notes : Both wacomkey and wintab32 services need to be stopped.
rem The copy fails if MSSETUP copy functions are used. The
rem services must be stopped/started from a DOS box. It
rem fails if done from the control panel.
rem Author : Jim Choate
rem Modify : T. Kawasome
rem History : 9/24/96. Created.
rem ------------------------------------------------------------
echo サービス関連のファイルを更新します。しばらくお待ちください。
if not "%3"=="1" goto SkipWacomkeyStop
net stop wacomkey
del %2wacomkey.exe
:SkipWacomkeyStop
if not "%4"=="1" goto SkipWintab32Stop
net stop wintab32
del %2wintab32.exe
:SkipWintab32Stop
ren %2wacomkey.tmp wacomkey.exe
ren %2wintab32.tmp wintab32.exe
if not "%4"=="1" goto SkipWintab32Start
net start wintab32
:SkipWintab32Start
if not "%3"=="1" goto SkipWacomkeyStart
net start wacomkey
:SkipWacomkeyStart