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