windows - 如何从命令提示符列出 windows tftp 服务器目录和文件?

标签 windows windows-7 command tftp

我已经在我的 windows 7 电脑上安装了 Tftpd32 软件。我在我的 Windows PC 上运行 tftp 服务器,tftp 主目录有几个目录和文件。我必须在 Windows 命令提示符下显示 tftp 服务器目录和文件?如何显示tftp服务器目录和文件夹?

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>

最佳答案

TFTP 是一种最小文件传输协议(protocol),不提供用于列出远程文件的子命令。

但是 Tftpd32 有一个解决方法,它可以为您正在访问的目录创建一个“dir.txt”文件。启用 the option在 Tftpd32 的 TFTP 设置中。现在,当 TFTP 客户端请求“dir.txt”文件时,服务器将生成并发送一个列出基本目录内容的文件。

如果您想使用更高级的功能,则必须使用 FTP。

关于windows - 如何从命令提示符列出 windows tftp 服务器目录和文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18225182/

相关文章:

c# - 了解 .NET 应用程序内存大小

visual-studio-2010 - Visual Studio SP1 iso 而不是 Web 安装程序?

Unix (Cygwin) whatis : returns all commands as "nothing appropriate"

c++ - 在实时 Fedora 上编译 C++ 程序的命令

windows - 在 Windows 上列出非符号链接(symbolic link)

windows - 如何从 FFMPEG 生成 SDP 文件

c# - 在 MonoGame 中获取窗口坐标

C# windows 窗体在 Windows 7 中崩溃

windows-7 - 如何在 Win7/10 上为 OpenVPN 客户端创建第二个 TAP 适配器

linux - 如何在终端中写入以前使用过的命令?