Hi all.
If necessary I'll repost this in the Windows forum, but I thought this would be a good place to hit a fair cross-section of the community. Besides, anyone can see that all the best brains post here. ;-)
I have a bit of a problem with scripting an FTP under Windows XP, and was hoping someone can shed some light on it.
I'm quite familiar with DOS batch files, and reasonably comfortable with FTP. I have a bunch of files that I generally download to my PC each morning. I generally start by copying a bunch of commands from a text file to the clipboard, then fire up the vanilla Windows FTP client and manually log on to the FTP server. Then I paste, sit back and watch the show.
So far, so good.
But I'm going on leave for a few weeks, and need to automate the process for someone else to run while I'm away, as some of the files will be deleted before I get back. I can set up a batch file they can open to FTP to the appropriate server and run a script, no worries.
BUT!!!
How can I allow the user to provide their user ID and password to log on? Hard-coding either mine or theirs into the file is out of the question. I have tried all sorts of combinations of auto-logon turned on and off, user and pass commands in the script file, and so on. But it seems as though I can basically either code the details in the file, or make the user do everything.
I need a way to let the FTP server stop and prompt the user (as normal) for their password (and maybe ID, but that's not so important) before continuing with the script.
If necessary, I'll write up instructions for them to paste the commands across like I've been doing, but would really prefer to automate it.
TIA
Tagline: I never muss the obvious.
If necessary I'll repost this in the Windows forum, but I thought this would be a good place to hit a fair cross-section of the community. Besides, anyone can see that all the best brains post here. ;-)
I have a bit of a problem with scripting an FTP under Windows XP, and was hoping someone can shed some light on it.
I'm quite familiar with DOS batch files, and reasonably comfortable with FTP. I have a bunch of files that I generally download to my PC each morning. I generally start by copying a bunch of commands from a text file to the clipboard, then fire up the vanilla Windows FTP client and manually log on to the FTP server. Then I paste, sit back and watch the show.
So far, so good.
But I'm going on leave for a few weeks, and need to automate the process for someone else to run while I'm away, as some of the files will be deleted before I get back. I can set up a batch file they can open to FTP to the appropriate server and run a script, no worries.
BUT!!!
How can I allow the user to provide their user ID and password to log on? Hard-coding either mine or theirs into the file is out of the question. I have tried all sorts of combinations of auto-logon turned on and off, user and pass commands in the script file, and so on. But it seems as though I can basically either code the details in the file, or make the user do everything.
I need a way to let the FTP server stop and prompt the user (as normal) for their password (and maybe ID, but that's not so important) before continuing with the script.
If necessary, I'll write up instructions for them to paste the commands across like I've been doing, but would really prefer to automate it.
TIA
Tagline: I never muss the obvious.
Comment