中国DOS联盟论坛

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-11 03:35
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Closed] How to implement FTP upload of a folder with many files under DOS
Printable Version  1,813 / 13
Floor1 zhanghong1 Posted 2007-06-20 20:30
初级用户 Posts 34 Credits 78
How to implement FTP upload of a folder with quite a few files under DOS

As the title says:
I have learned on our forum~~
Already achieved:


But in the C:\boyhong.mmp file:

I can achieve uploading one file.
But what if there is a folder with quite a few files?

Content of the C:\boyhong.mmp file:


The directory of the local folder is also a changing directory name generated by %data% every day

[ Last edited by HAT on 2009-1-4 at 23:26 ]
Floor2 zhanghong1 Posted 2007-06-20 20:31
初级用户 Posts 34 Credits 78
Thanks to the experts for the guidance~~First, I'll bump it myself
Floor3 sonicandy Posted 2007-06-20 21:30
中级用户 Posts 91 Credits 273
for /f "delims=" %i in ('dir /s /b xxx') do echo put %i >> C:\boyhong.mmp
Replace xxx with the directory name
Enter directly in DOS
Floor4 zhanghong1 Posted 2007-06-21 08:22
初级用户 Posts 34 Credits 78
In this folder that needs to be uploaded, there are many files and also folders. And the directory name of this folder is automatically backed up by another batch script. The format of the directory name is: "%data%oa"
Floor5 zasxcdfv Posted 2007-06-21 09:27
初级用户 Posts 75 Credits 152
Floor6 zhanghong1 Posted 2007-06-21 10:53
初级用户 Posts 34 Credits 78
Floor7 sonicandy Posted 2007-06-21 20:19
中级用户 Posts 91 Credits 273
It's still relatively convenient to use FlashFXP, heh heh
Floor8 xue0808 Posted 2007-06-21 22:56
初级用户 Posts 56 Credits 108
Pack it first, then mput
Floor9 zhanghong1 Posted 2007-06-22 11:03
初级用户 Posts 34 Credits 78
Pack it with RAR? Then upload it~~~~~~~
Good idea~~~Thanks to the upstairs~~~~~~~
Floor10 HAT Posted 2007-06-22 11:48
版主 Posts 5,017 Credits 9,023
//Do you want to pack it with RAR? Then upload it~~~~~~~

It is recommended to use WinZip for packing
Because files packed with WinRar cannot be extracted on Unix^_^
Floor11 zhanghong1 Posted 2007-11-23 18:40
初级用户 Posts 34 Credits 78
Now summarize:
After packaging, upload it~~But after uploading, how to extract it in the ftp? Does batch processing support running the rar extraction command in ftp?
Floor12 vkill Posted 2007-11-24 11:48
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Download and then rar /? Okay
Floor13 zerocq Posted 2007-11-24 15:10
中级用户 Posts 196 Credits 458
Consider curl/wget
Floor14 tianjiyouyun Posted 2009-01-04 23:24
新手上路 Posts 9 Credits 16
How to achieve FTP download of an entire folder and its contents under DOS.
Note: Without using the packaging method
Thank you in advance!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023