Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to list the windows tftp server directories and files from command prompt?

I have installed Tftpd32 software in my windows 7 pc. I have running tftp server on my windows pc and tftp home directory has few directories and files. I have to display the tftp servers directories and files from windows command prompt ? How to display the tftp server directories and folders ?

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>
like image 224
gmanikandan Avatar asked Aug 14 '13 07:08

gmanikandan


People also ask

Can TFTP list directories?

For example, the tftp and utftp commands do not provide the ability to list remote files or change directories at the remote host, and only limited file access privileges are given to the remote TFTP server.

How do I list directories in command prompt?

Click in the address bar and replace the file path by typing cmd then press Enter. This should open a black and white command prompt displaying the above file path. Type dir /A:D. /B > FolderList.

Where is the TFTP directory?

The config files are retrieved and are stored in the file system under the TFTP Root directory, the default location being <OpUtils_Home>/webapps/tftp directory.


1 Answers

TFTP is a minimal file transfer protocol that does not provide subcommands to list remote files.

But Tftpd32 has a workaround, it can create a "dir.txt" file for the directory you're accessing. Enable the option in the TFTP settings of Tftpd32. Now when a TFTP client requests the "dir.txt" file, the server will generate and send a file that lists the content of the base directory.

You'll have to use FTP if you want to use more advanced features.

like image 169
Synck Avatar answered Nov 14 '22 22:11

Synck