General discussion


FTP Script File

By Daygo_171 ·
I am trying to automate an FTP transfer using a batch file in win xp. I am having trouble getting my batch file to run the script (which is a .txt file) to automatically log into the FTP server, transfer the files, then quit.

I see that I need to use the following sequence:


in my batch file to run the script. Problem is my batch file cannot find the script file. How do I make the connection?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

You running from a scheduler, or shortcut?

by tbragsda In reply to FTP Script File

You have the syntax right, so I would guess its that the shortcut, or scheduler is not starting it in the correct directory.

One way to fix this is put the full path to the script file in the batch.

ftp -s:F:\FTPs\MyFTP.src

When using batch files, its alwas helpful to use full path name when you can.

Collapse -

found the problem

by Daygo In reply to You running from a schedu ...

you were right.........I did have everything right with one exception. I was creating the .txt script file in wordpad instead of note pad. It must have been adding some unruly overhead. When I created the script file in notepad everything went well.

thanks for the help

Related Discussions

Related Forums