中国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-12 01:40
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Help] An FTP question
Printable Version  861 / 4
Floor1 hfli0817 Posted 2010-07-29 19:45
新手上路 Posts 13 Credits 15
I'm using DOS FTP to upload a file with a long filename, and it says File not found. I also tried putting the file in double quotes, but that didn't work either. I'd like to ask you experts if there's any good solution? Do I need to use some other FTP software to solve it?
Floor2 HAT Posted 2010-07-29 20:36
版主 Posts 5,017 Credits 9,023
Post the full command so we can take a look?
Floor3 hfli0817 Posted 2010-07-29 22:36
新手上路 Posts 13 Credits 15
echo open 192.168.1.21>ftp.log
echo lspos>>ftp.log
echo posuser>>ftp.log
echo cd /j50wh/tlog/>>ftp.log
echo lcd d:\sxd1\csms35\pcdtmn01>>ftp.log
echo ascii>>ftp.log
echo prompt off>>ftp.log
echo put "tCZF_000000.001">>ftp.log
echo by>>ftp.log
ftp -s:ftp.log
pause

When execution reaches put "tCZF_000000.001", ftp gives a file not found message. That means ftp can't find the local file, but the local file clearly does exist. If I rename the file to a short filename, it can be uploaded. Please help me take a look, moderator, thanks!
Floor4 pdanniel66 Posted 2010-07-30 06:16
初级用户 Posts 64 Credits 68
Try adding the full path after put !
Floor5 hfli0817 Posted 2010-07-30 13:31
新手上路 Posts 13 Credits 15
It worked, many thanks to pdanniel66 for the tip!!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023