China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 02:31
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] An FTP question View 862 Replies 4
Original Poster Posted 2010-07-29 19:45 ·  中国 广东 广州 电信
新手上路
Credits 15
Posts 13
Joined 2007-09-07 17:06
18-year member
UID 96804
Gender Male
Status Offline
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?
Floor 2 Posted 2010-07-29 20:36 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Post the full command so we can take a look?
Floor 3 Posted 2010-07-29 22:36 ·  中国 广东 广州 电信
新手上路
Credits 15
Posts 13
Joined 2007-09-07 17:06
18-year member
UID 96804
Gender Male
Status Offline
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!
Floor 4 Posted 2010-07-30 06:16 ·  中国 台湾 台湾宽频通讯顾问股份有限公司
初级用户
★★
Credits 68
Posts 64
Joined 2009-05-23 20:43
17-year member
UID 145803
Gender Male
Status Offline
Try adding the full path after put !
Floor 5 Posted 2010-07-30 13:31 ·  中国 广东 广州 电信
新手上路
Credits 15
Posts 13
Joined 2007-09-07 17:06
18-year member
UID 96804
Gender Male
Status Offline
It worked, many thanks to pdanniel66 for the tip!!
Forum Jump: