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.
FTP from pc to mainframe without having to store password
Moderator: DosItHelp
-
- Posts: 6
- Joined: 04 Jun 2010 09:49
Re: FTP from pc to mainframe without having to store passwor
Code: Select all
@echo off
set /p $U="User: "
(
echo open ftp.microsoft.com
echo user %$U%
echo dir
echo bye
)|ftp -n
-
- Posts: 6
- Joined: 04 Jun 2010 09:49
Re: FTP from pc to mainframe without having to store passwor
Perfect. Thank you so much!