Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Scripts 1

Status
Not open for further replies.

joel009

Programmer
Jul 7, 2000
272
US
I have been trying to set up a bat and script file to ftp an access Db. I can do it manually but would like to call it from a macro and set it up on a schedular.

my bat:
ftp -s D:\Data\RFC\Blazent\BlazentFTP.txt

My script in a txt file:
open 1XX.1XX.1XX.75
blazent (ID)
Start123 (PWD
binary
hash
Put D:\Data\RFC\Blazent\Blazent1.mdb
bye

The dos window opens and scrolls a line forever acting like it is not opening the script. Anyone have any ides what's wrong. Using XP and Access 2002 but the Access version shouldn't come into play.

Thanks.
 
what's the message that's scrolling in the dos window?
 
the line that scrolls has the path to the batch file and then the -s D:\Data\RFC\Blazent\BlazentFTP.txt
all on one line in the dos window. It keeps scrolling until I use Ctrl C to stop it and then it asks me if I want to stop the batch process, I enter 'Y' to stop it. Is it running or is it caught in a loop? I have let it run as long as it take me to ftp the file manually and longer, it never seems to stop.
 
try this in your batch file. i can't figure out why it would be looping.

ftp.exe -s:"D:\Data\RFC\Blazent\BlazentFTP.txt
 
OMG, that did it!!! I have spent 2 day on this looking all over. It's always so simple in retrospect. Thank you so much. You get a star for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top