cmd ftp mput-jpeg文件与原始文件不同 [英] cmd ftp mput - jpeg files differs from original file

查看:77
本文介绍了cmd ftp mput-jpeg文件与原始文件不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前我正在为ftp -s执行该批处理:

currently im executing this batch for ftp -s:

打开192.1.2.3
USER
密码
cd文件夹"
液晶显示器"c:\ folder"
提示
mkdir 20140730
cd"20140730"
mput * .jpeg
退出

open 192.1.2.3
USER
PASSWORD
cd "folder"
lcd "c:\folder"
prompt
mkdir 20140730
cd "20140730"
mput *.jpeg
quit

在测试期间,我尝试写入10个文件,并且一切似乎都很好.现在,我正在转让aprox. 1400个文件,总大小为700MB,我的问题是上载的文件与原始文件不同. JPEG似乎已损坏,在某些图像上较浅的部分上另一部分是深色的,或图像上有一些彩色的线条或部分...是否可以通过方法检查由mput移动的文件是否与源文件相同?我检查过的所有文件都会受到影响.

During testing I was trying to mput like 10 files and everything seems fine. Now im transfering aprox. 1400 files with total size 700MB and my problem is that uploaded file is different then the original one. JPEG seems to be corrupted, on some image is lighter part another part is dark, or there are some coloured lines or parts on image... Is there way check if files moved by mput are same with source files? All files i have checked are affected.

推荐答案

在传输文件之前,在脚本中发布binary关键字.

Issue the binary keyword in the script before transferring the files.

prompt
binary

binary关键字阻止文件在第一个EOF字符处被截断,这是文本传输模式下的默认行为.

The binary keyword stops files being truncated at the first EOF character, which is the default behaviour in text transfer mode.

这篇关于cmd ftp mput-jpeg文件与原始文件不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆