Page 1 of 1

FTP from pc to mainframe without having to store password

Posted: 04 Jun 2010 09:53
by yarnseeker
I have an ftp script and it works just fine but I need to know IF it is possible to somehow make the userid and password get PROMPTED or PASSED when running my .BAT file.

I know how to get the userid and password in my .BAT file and I see that they can be written out and then passed to FTP but that would be a security violation here. I need to be able to pass them and not actually store them.

Re: FTP from pc to mainframe without having to store passwor

Posted: 04 Jun 2010 23:09
by amel27

Code: Select all

@echo off
set /p $U="User: "
(
echo open ftp.microsoft.com
echo user %$U%
echo dir
echo bye
)|ftp -n

Re: FTP from pc to mainframe without having to store passwor

Posted: 07 Jun 2010 08:42
by yarnseeker
Perfect. Thank you so much! :D