File: install.bat

package info (click to toggle)
xntp3 5.93-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 7,644 kB
  • ctags: 7,419
  • sloc: ansic: 59,474; perl: 3,633; sh: 2,623; awk: 417; makefile: 311; asm: 37
file content (82 lines) | stat: -rwxr-xr-x 1,641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@ECHO OFF
IF EXIST %SystemRoot%\system32\tcpsvcs.exe goto TCPOK

ECHO TCP Service not installed.
ECHO .
ECHO You must install TCP/IP before installing the NTP service.
ECHO .

goto LAST

:TCPOK


REM
REM Setup NTP \var\ntp directory
REM

IF EXIST %SystemRoot%\..\var\ntp goto Skip1

MKDIR %SystemRoot%\..\var
MKDIR %SystemRoot%\..\var\ntp

:Skip1

REM
REM Copy configuration files.
REM

ECHO Installing Configuration Files

IF EXIST %SystemRoot%\ntp.conf goto Skip2

COPY ntp.conf %SystemRoot%

:Skip2


IF EXIST %SystemRoot%\ntp.drift goto Skip3

COPY ntp.drift  %SystemRoot%\ntp.drift

:Skip3


COPY ntpog.wri %SystemRoot%\..\var\ntp\ntpog.wri


REM 
REM Copy executables 
REM 

ECHO Installing Executables

COPY xntpd.exe     %SystemRoot%\system32
COPY xntpdc.exe    %SystemRoot%\system32
COPY ntpq.exe      %SystemRoot%\system32
COPY ntpdate.exe   %SystemRoot%\system32
COPY ntptrace.exe  %SystemRoot%\system32


REM
REM Install NTP server as an NT Service.
REM

.\instsrv.exe %SystemRoot%\system32\xntpd.exe

     
ECHO .
ECHO The NTP Service is now installed.
ECHO Please modify the NTP.CONF file in %SystemRoot% appropriately.
ECHO .
ECHO .
ECHO See readme.txt for more information.
ECHO .
ECHO After modifying the configuration file, use the services control panel
ECHO to make NTP autostart and either reboot or manually start it.
ECHO When the system restarts, the NTP service will be running.
ECHO For more information on NTP Operations please see the NTPOG.Wri
ECHO (NTP Operations Guide) in the %SystemRoot%\..\var\ntp directory...
ECHO .

:LAST