SQL Server作业:FTP找不到文件

时间:2018-10-26 21:35:35

标签: sql-server ftp sql-job

我已经通过3个步骤创建了新作业,第1步:创建FTP脚本,第2步:运行FTP脚本,第3步:删除FTP脚本。步骤1在c:\ temp文件夹中创建以下脚本。

open myftplocation
userid
pwd
cd ..
cd destination
ascii
put c:\mylocalfilelocation\files\todaysfile.txt newfile.txt
quit

步骤2: ftp.exe -i -s:C:\ temp \ MyFTPscript.vbs

当它到达第2步时,状态显示为成功,但是当我检查详细消息(在“作业历史”中)时,它说ftp>将c:\ mylocalfilelocation \ files \ todaysfile.txt newfile.txt c:\ mylocalfilelocation \ files \ todaysfile放入。 txt:找不到文件

我在命令提示符下逐行尝试了每个命令行,它工作正常。知道是怎么回事吗?

谢谢。

0 个答案:

没有答案