Recently, someone has always asked how to start the TFTP service in Win2K. In fact, the TFTP service is not installed by default. The service is only installed when the RIS service is used, now I will demonstrate how to install a tftp service.
We first find the tftpd.exe file in the system. Generally, we can find the file in the % systemroot % system32dllcache directory. We recommend that you copy the file to another directory.
C:> copy your systemroot=system32dllcacheftpd.exe
% Systemroot % system32
1 file has been copied.
We will use the Resource in Windows 2000
Instsrv, a tool in Kits, creates a service. instsrv is used as follows. Of course, you can also use other tools (such as srvinstw and GUI ).
C:> instsrv
Installand removes system services from NT
INSTSRV <service name> (<exe location> | REMOVE)
[-A <Account Name>] [-p <Account Password>]
Install service example:
INSTSRV MyService C: MyDirDiskService. Exe
-OR-
INSTSRV MyService C: mailsrvmailsrv.exe-a MYDOMAINjoebob-p foo
Remove service example:
INSTSRV MyService REMOVE
[My features: not enough words, help!]
Add a service. Note that the service is automatically started when it is created.
C:> instsrv tftp c: winntsystem32ftpd.exe
The service was successfuly added!
Make sure that you go into the Control Panel and use
The Services applet to change the Account Name and
Password that this newly installed service will use
For its Security Context.
Start the service
C:> net start tftp
The tftp service is starting.
The tftp service has been started successfully.
Test whether the service works properly
C:> tftp-I 61.135.21.195 PUT sometips.gif
Transfer successful: 4209 bytes in 1 second, 4209 bytes/s
C:> dir tftpdroot
The volume in drive C is C
The serial number of the volume is 1E23-1907.
C: ftpdroot directory
<DIR>.
<DIR> ..
4,209 sometips.gif
1 file, 4,209 bytes
2 directories, 94,113,792 available bytes
Note: If you upload a file, the system will automatically create a directory named tftproot in % systemdrive %. OK, all the work has been completed!