How to list directories and files of tftp windows server from command line?

I installed Tftpd32 software in my windows 7 pcs. I have a tftp server running on my Windows computer, and there are several directories and files in the tftp home directory. Do I need to display directories and tftp server files from a windows command prompt? How to display directories and folders of tftp server?

C:\Users\user1>tftp Transfers files to and from a remote computer running the TFTP service. TFTP [-i] host [GET | PUT] source [destination] -i Specifies binary image transfer mode (also called octet). In binary image mode the file is moved literally, byte by byte. Use this mode when transferring binary files. host Specifies the local or remote host. GET Transfers the file destination on the remote host to the file source on the local host. PUT Transfers the file source on the local host to the file destination on the remote host. source Specifies the file to transfer. destination Specifies where to transfer the file. C:\Users\user1> 
+6
source share
2 answers

TFTP is a minimal file transfer protocol that does not provide subcommands for the list of deleted files.

But Tftpd32 has a workaround, it can create a “dir.txt” file for the directory you are accessing. Enable the option in TFTP settings for Tftpd32. Now, when the TFTP client requests the file "dir.txt", the server will generate and send a file containing a list of the base directory.

You will need to use FTP if you want to use more advanced features.

+5
source

You can get "BaseDirectory" from Tftpd32 from tftpd32.ini in the installed directory. (C: \ Program Files \ Tftpd32). Usually when you open the Tftpd32 application, it will be open with this base as the base. And from the script,

  • Change directory to base directory grepped from tftpd32.ini
  • Make a "dir" from this directory to get a list of subdirectories and files.
+1
source

Source: https://habr.com/ru/post/951690/


All Articles