需要帮助打开ftp服务器和批量登录 [英] Need Help to open ftp server and login with batch
问题描述
我需要创建一个批处理文件,自动打开我的ftp服务器,我如何自动输入用户名和密码的ftp用户名和密码提示。我试图使用
echo username | ftp ipadress,但它需要输入用户名和密码,所以我需要帮助创建一个批处理文件自动登录为用户和密码通过
在使用以下脚本之前,请记住FTP协议
不允许加密,身份验证过程和数据转换。
-
使用以下文本创建一个新文本文件:
myservername / serverip
%username%
password
cd / upload
bin
hash
put / getfilename.cab
bye
注意:请选择正确的ftp命令以允许脚本工作
-
将文件另存为
runftp.txt
p> -
运行命令:
c:\windows\system32\ftp.exe -s:runftp.txt
SOURCE: http://support.microsoft.com/kb/555976
I need to make a batch file which opens my ftp server automatically,How do i automatically input user name and password to the ftp username and password prompt.I have tried to use echo username|ftp ipadress,but it is taking the input for both user name and password,So I need Help to create a batch file witch automatically logins as "user" and password "pass"
Before you use the following script, please remember that the FTP protocol doesn't allow encryptions, the authentication process and the data transitions.
Create a new text file with the following text:
open "myservername/serverip" "%username%" "password" cd /upload bin hash put/get "filename.cab" bye
Note: Please choose the correct ftp commands to allow the script to work.
Save the file as
runftp.txt
(For example).Run the command:
c:\windows\system32\ftp.exe -s:runftp.txt
SOURCE: http://support.microsoft.com/kb/555976
这篇关于需要帮助打开ftp服务器和批量登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!