Discussion Locked

FTP Script File

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

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:

-s:filename

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

2 replies

by tbragsda

.
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.

by daygo

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

This discussion is closed to new replies.