需要帮助打开ftp服务器和批量登录 [英] Need Help to open ftp server and login with batch

查看:216
本文介绍了需要帮助打开ftp服务器和批量登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个批处理文件,自动打开我的ftp服务器,我如何自动输入用户名和密码的ftp用户名和密码提示。我试图使用
echo username | ftp ipadress,但它需要输入用户名和密码,所以我需要帮助创建一个批处理文件自动登录为用户和密码通过

解决方案

在使用以下脚本之前,请记住FTP协议
不允许加密,身份验证过程和数据转换。


  1. 使用以下文本创建一个新文本文件:

      myservername / serverip
    %username%
    password
    cd / upload
    bin
    hash
    put / getfilename.cab
    bye

    注意:请选择正确的ftp命令以允许脚本工作


  2. 将文件另存为 runftp.txt p>


  3. 运行命令: 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.

  1. 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.

  2. Save the file as runftp.txt (For example).

  3. Run the command: c:\windows\system32\ftp.exe -s:runftp.txt

SOURCE: http://support.microsoft.com/kb/555976

这篇关于需要帮助打开ftp服务器和批量登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆