Hi,
I have a similar problem. I want to upload a file to my server from Windows. I have the userid/pwd. I want to automate the process. Something like, i will click on a batch file which should ask me for a password. When i supply a valid password it should upload the file. The file name and the source directory are assumed to be non changing and fixed and known.Is such a thing possible???
I achieved until this:I created a batch file. In that only i have hardcoded username and pwd.
ftpBatch.bat
=============
cd c:
ftp -s:%0
goto done
open xxx.xxx.xxx.xxx(IP add)
user
pwd
cd DESTINATION_DIR
mput file1.txt
y
bye
:done
========================
Instead of hardcoding i want it to be atleast a command line parameter which can be run using:
C:\> ftpBatch.bat pwd
Any inputs will be highly appriciated....
Thanks and Regards,
Srinath Thanks and Warm Regards,
Srinath M.K