Prompt for userid and Password for FTP

March 17, 2010 at 11:14:43
Specs: Windows XP
I am new to batch files and ftp scripting, and I am trying to use a batch file to get userid and password and pass it to a txt file to be used for FTP My txt file is not recognizing the Paramatars I am passing it. Can anyone help? Here is my batch file and my Text file.

BATCH:
echo Off
CLS
set /p userid=Enter Your User ID :
echo hP1X500P[PZBBBfh#b##fXf-V@`$fPf]f3/f1/5++u5>in.com
set /p password=Enter Your Password:<nul
for /f "tokens=*" %%i in ('in.com') do (set password=%%i)
del in.com
ftp -d -s:ftpscript.txt

TEXT FILE
open +IP of FTP Server+
%userid
%password
echo put file name
quit


See More: Prompt for userid and Password for FTP

Report •

#1
March 17, 2010 at 14:35:00
Your question is better posted here:

http://www.computing.net/forum/prog...

Home Page http://ewen.uuuq.com/


Report •

#2
March 17, 2010 at 18:51:32
I would really appreciate some assistance with this.

Report •
Related Solutions


Ask Question