I am trying to get a batch file to FTP out and copy a file on Windows 2000 Server. The batch works except for the FTP part. I looked at a few sites and I am doing what they say.
==============================
This is where the FTP plays in the main batch:
ftp -s:homiftp.txt
==============================
In that file I have:
ftp xxx.xxx.xxx.xxx
login
password
cd patch
get callanalyzer.exe
quit
==============================
When the batch file gets to that file, this is what I keep getting:
C:\>ftp -s:homiftp.txt
Error opening script file homiftp.txt.
Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.
==============================
I have tried variations of trying to get this to work but I keep running into that error. Any ideas on what simple bit I am missing?
Thanks.