【发布时间】:2013-04-17 08:38:31
【问题描述】:
我正在尝试编写一个脚本,它会自动连接到 ftp 服务器并上传两个简单的文件。 我在互联网上找到了许多通过批处理文件将文件上传到 ftp 服务器的指南,效果很好。
我的问题是,我需要使用 PKCS 证书连接到服务器。 甚至可以用批处理编写这样的脚本吗?
如果没有,还有其他可能吗?
系统:Windows 7.7601
当前脚本:
set tempftp=fileserver.ftp
:# create ftp-script
echo OPEN xxx.xx.xx.xx > %tempftp%
echo USER username pwd >> %tempftp%
rem not working:
echo cd FTP
echo send %1 >> %tempftp%
echo disconnect >> %tempftp%
echo quit >> %tempftp%
:# execute
ftp.exe -n -i -s:%tempftp%
del %tempftp%
pause
exit
亲切的问候 马里奥
“英语不是我的母语,请编辑清楚,然后删除此评论!”
【问题讨论】:
标签: batch-file ftp cryptography private-key