Win7 system can not view file list resolution using ftp dir or ls command

  
        The Win7 system cannot view the file list using the ftp dir or ls command. In the command line mode of the Win7 system, the file list cannot be viewed using the ftp dir or ls command, but it can be viewed using IE. After finding relevant information, it basically comes down to two reasons: Privilege has problems Windows comes with firewall interception After the experiment, I found that my situation belongs to the second type. The specific solutions are as follows: Directly close the Windows firewall Open the firewall, but set the inbound Rules allow ftp.exe program to receive information Use netsh command to set rules [plain] netsh advfirewall firewall add rule name="FTP(non-SSL)" program="%systemroot%\\system32\\ftp.exe" action=allow Protocol=TCP dir=in netsh advfirewall set global StatefulFtp disable Command 1 works the same as the second method. Command 2 is mainly used to disable statefulFTP filtering. This has no effect on me, but it is recommended to add an episode. Related articles (1, 2), using two similar, but different commands [plain] Article 1 netsh advfirewall firewall add rule name="FTP (non-SSL)" action=allow protocol=TCP dir=in Localport=21 netsh advfirewall set global StatefulFtp enable [plain] Article 2 netsh advfirewall firewall add Rule name=”FTP Service” action=allow service=ftpsvcprotocol=TCP dir=in netsh advfirewall set global StatefulFTP disable is really tangled, for the localport=21 in the article can not always correspond to the ftp.exe program that comes with windows, Later, use the tasklist command to find the PID number corresponding to ftp, and then use the netstat command to find that ftp.exe is not 21 on the original port of the computer. . The service=ftpsvc in the article can not allow the exception of ftp.exe, and later helped the following netsh command, found the program parameters, and artificially added the program path.
Copyright © Windows knowledge All Rights Reserved