Modify FTP account and password through batch processing _dos/bat

Source: Internet
Author: User
Tags ftp file goto

Method One, batch process modify FTP account and password

@echo off
rem Specifies the FTP user name
set ftpuser=ftpusername
REM Specifies the FTP original password
set Ftppassold=ftppasswordold
rem Specify FTP new password
set ftppassnew=ftppasswordnew
REM Specify FTP server address
set ftpip=192.168.0.2

set ftpfile=%temp%/ TempFTP.txt
> "%ftpfile%" echo,%ftpuser%
>> "%ftpfile%" echo,%ftppassold%
>> "% Ftpfile% "Echo Quote site pswd%ftppassold%%ftppassnew%
>>"%ftpfile% "echo bye
start ftp-i-S:"%ftpfile % "%ftpip%

Modify FTP Username and password method two,

How to use: Copy the following code into Notepad, save as a file named "Change ftp password. bat" (note that the suffix name is not. txt, but. bat), and then double hit open the file, then jump out of the black Background window to follow the prompts to enter the user name, the old password, the new password, You can change your FTP password.

@echo off Echo ************************************************* echo * * Echo * FTP Server user Password Change program * echo * echo ********* set/p username= Please enter username (uppercase and lowercase): set/p oldpwd= Please enter your old password: set/p newpwd= Please enter a new password: set F Tpfile=%temp%\tempacc.txt set Ftplog=%temp%\tempftp.log > "%ftpfile%" Echo Open 192.168.1.3 >> "%ftpfile%" echo%UserName% >> "%ftpfile%" Echo%oldpwd% >> "%ftpfile%" Echo quote site PSWD%oldpwd%%newpwd% >> "%ftp File% "Echo Quit Ftp-is:"%ftpfile% ">"%ftplog% del "%ftpfile%" FINDSTR/C: "230 Password changed okay"%ftplog%>nul & amp;& goto true_line| | Goto fail_line Pause Exit:true_line echo ************************************************* echo * Congratulations, password change successful!! * echo * Press any key to close this window ... * echo * * echo ************************************************* pause exit:fail_line Echo * * * * * echo * * Sorry, password change failed!! * echo * Please check that the original username and password are correct. * echo * Press any key to close this window ... * echo * Echo ************************************************* Pause exit 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.