![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-04 14:12 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » How to search for the file or folder I want on an FTP |
| Printable Version 1,679 / 10 |
| Floor1 piziliu2004 | Posted 2007-05-08 09:50 |
| 中级用户 Posts 139 Credits 321 | |
|
How to search for the file or folder I want on an FTP? Scripts or tools can be used.
|
|
| Floor2 piziliu2004 | Posted 2007-05-08 10:49 |
| 中级用户 Posts 139 Credits 321 | |
| Floor3 vkill | Posted 2007-05-08 13:23 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
| Floor4 lililulula | Posted 2007-05-08 14:12 |
| 中级用户 Posts 138 Credits 302 | |
The above mainly completes the process of logging in to the folder that the owner wants to log in to each time when logging in to FTP. It was tested successfully under XP, but there are 2 problems: 1. If you want to find a Chinese file name, it is not possible. If the directory name listed by ls under FTP is in Chinese, it will be represented in other ways. I don't know if it is a problem with the FTP server settings. 2. It can only find the directory name in the root directory after FTP login. If the desired directory is in a subdirectory of the directory, it cannot be completed. For example, if the donghua directory is in "root directory\123\donghua" of FTP, it cannot be found. The parameter of dir in FTP is invalid, so I don't know how to find all subdirectories of a specified directory similar to the function of dir /s. [ Last edited by lililulula on 2007-5-8 at 02:21 PM ] |
|
| Floor5 piziliu2004 | Posted 2007-05-08 15:57 |
| 中级用户 Posts 139 Credits 321 | |
|
to: lililulula
Thanks in advance.!.. The key is to traverse and search all subdirectories under the FTP directory. Hope everyone can discuss more. to vkill .You mean the p-ftpls.BAT, I don't know how to use the parameters of the batch file you wrote specifically. Can you send an example for reference, to achieve finding a file (traversing and searching all subdirectories under the FTP directory) |
|
| Floor6 546474 | Posted 2007-05-08 16:05 |
| 中级用户 Posts 123 Credits 247 | |
| Floor7 piziliu2004 | Posted 2007-05-08 16:24 |
| 中级用户 Posts 139 Credits 321 | |
|
Just downloaded p-ftpls.BAT -s. Tried it out. It feels like it takes a really long time. Is there a way to make it a bit shorter in time?
|
|
| Floor8 lililulula | Posted 2007-05-08 16:47 |
| 中级用户 Posts 138 Credits 302 | |
|
I took a look at vkill's p-ftpls.bat and it completely dashed my hopes, but for the requirements of the thread starter, it can actually be achieved. First, use p-ftpls to traverse all directories and export to a text file, then use a batch script to perform the subsequent operations needed.
|
|
| Floor9 piziliu2004 | Posted 2007-05-08 17:19 |
| 中级用户 Posts 139 Credits 321 | |
|
I spent more than 20 minutes traversing an FTP. Oh my. I don't know if you guys know if there are ready-made software (software developed with VC, VB, .NET, etc.). I want to use those advanced software which might handle traversal faster.
|
|
| Floor10 piziliu2004 | Posted 2007-05-09 11:42 |
| 中级用户 Posts 139 Credits 321 | |
|
I spent more than 20 minutes traversing an FTP. Oh my. I don't know if you guys know if there are ready-made software (software developed with VC, VB, .NET, etc.). I think using those advanced software might handle traversal faster.
|
|
| Floor11 qingfushuan | Posted 2007-05-09 12:10 |
| 高级用户 Posts 327 Credits 502 | |
|
The title of LZ has no restrictions in cmd. If it's Windows, you can try using flashfxp.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |