/iknow-pic.cdn.bcebos.com/a50f4bfbfbedab6479fc143ef936afc378311e45"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/a50f4bfbfbedab6479fc143ef936afc378311e45?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/a50f4bfbfbedab6479fc143ef936afc378311e45"/>
2、输入框输入“explorerftp://用户名@IP地址”,点击确定。
/iknow-pic.cdn.bcebos.com/562c11dfa9ec8a13d3910e1ef903918fa1ecc041"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/562c11dfa9ec8a13d3910e1ef903918fa1ecc041?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/562c11dfa9ec8a13d3910e1ef903918fa1ecc041"/>
3、然后进入登陆界面。
/iknow-pic.cdn.bcebos.com/08f790529822720ec94abb0475cb0a46f31fab4c"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/08f790529822720ec94abb0475cb0a46f31fab4c?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/08f790529822720ec94abb0475cb0a46f31fab4c"/>
4、登录用户名和密码,点击“登录”。
/iknow-pic.cdn.bcebos.com/d1160924ab18972bb77f5a34e8cd7b899f510a82"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/d1160924ab18972bb77f5a34e8cd7b899f510a82?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/d1160924ab18972bb77f5a34e8cd7b899f510a82"/>
5、进去ftp服务器界面。
/iknow-pic.cdn.bcebos.com/09fa513d269759ee85c93835bcfb43166c22dfb7"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/09fa513d269759ee85c93835bcfb43166c22dfb7?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/09fa513d269759ee85c93835bcfb43166c22dfb7"/>
6、找到根目录web文件夹,打开。
/iknow-pic.cdn.bcebos.com/4e4a20a4462309f72ecbe8ec7c0e0cf3d6cad6ac"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/4e4a20a4462309f72ecbe8ec7c0e0cf3d6cad6ac?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/4e4a20a4462309f72ecbe8ec7c0e0cf3d6cad6ac"/>
7、web下存放的文件及其内容。
/iknow-pic.cdn.bcebos.com/359b033b5bb5c9eacdfc471ddb39b6003bf3b3c5"target="_blank"title="点击查看大图"class="ikqb_img_alink">/iknow-pic.cdn.bcebos.com/359b033b5bb5c9eacdfc471ddb39b6003bf3b3c5?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto"esrc="https://iknow-pic.cdn.bcebos.com/359b033b5bb5c9eacdfc471ddb39b6003bf3b3c5"/>
可能是你的分太少了吧,多给点分会有人来的。。。。这个问题我的思路是通过windows的计划任务结合批处理文件
计划任务这个我就不详细说了,网上很多资料。
然后是批处理命令,以下是我在另外一个问题的回答,你可以参考下:
—————————我是传说中的分割线————————————
测试通过。
首先为dos命令下的bat文件:ftp.bat:
@echo off
REM 采用环境变量方式配置文件夹,日志等
set BASE = d:
set DOWNLOAD_PATH = d:\gao
set UPLOAD_PATH = d:\hua
set LOG_PATH = d:\log
set LOG_FILE = d:\log\log.txt
REM 判断目录是否存在。估计目录你早已建好,但是为了完整,还是写上吧。
%BASE%
if not exist %DOWNLOAD_PATH% (
mkdir %DOWNLOAD_PATH%
)
if not exist %UPLOAD_PATH% (
mkdir %UPLOAD_PATH%
)
if not exist %LOG_PATH% (
mkdir %LOG_PATH%
)
REM 程序运行
echo ========================================== >>%LOG_FILE%
set DATET=%date%%time%
echo 程序开始运行,时间:%DATET% >>%LOG_FILE%
cd %DOWNLOAD_PATH%
REM 注意下面这句,其中,download.ftp为下载指令集,注意前面的地址。
ftp -n -s:"d:\download.ftp" >>%LOG_FILE%
echo 本次下载的文件如下:>>%LOG_FILE%
dir /B %DOWNLOAD_PATH\*.* >>%LOG_FILE%
echo 下载操作结束,时间:%DATET% >>%LOG_FILE%
REM 下面是上传,基本类似。
ftp -n -s:"d:\upload.ftp">>%LOG_FILE%
echo 本次上传的文件如下:>>%LOG_FILE%
dir /B %UPLOAD_PATH\*.* >>%LOG_FILE%
echo 上传操作结束,时间:%DATET% >>%LOG_FILE%
echo ============================================ >>%LOG_FILE%
———————再次出现的分割线————————————
以下为下载指令集download.ftp:
open 192.168.1.150
user TEST
123
cd /home/ms/gh/out
prompt off
mget *.*
bye
———————不愿出场的分割线————————————
以下为上传指令集upload.ftp:
open 192.168.1.150
user TEST
123
cd /home/ms/gh/in
prompt off
mput *.*
bye
———————最后谢幕的分割线————————————
以上这些估计可以满足你的要求了。
你可以参考此文件做一定的修改。
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)