FTP automation

Batch, ASP, JScript, Kixtart, etc.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 16 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
bruskie
Posts: 7
Last visit: Mon Jun 18, 2007 12:40 am

FTP automation

Post by bruskie »

Hi all,
Would anyone know or have a script to automate the upload of files, in this case log files, to a ftp server?
Thanks,
bruskie
User avatar
bruskie
Posts: 7
Last visit: Mon Jun 18, 2007 12:40 am

FTP automation

Post by bruskie »

Hi all,
Would anyone know or have a script to automate the upload of files, in this case log files, to a ftp server?
Thanks,
bruskie
User avatar
bruskie
Posts: 7
Last visit: Mon Jun 18, 2007 12:40 am

FTP automation

Post by bruskie »

Thanks.
Would I need any client to connect or would it connect as if I where using explorer in Windows?
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

FTP automation

Post by jvierra »

Put the following line on a batch file:
ftp -s:ftp.inp -n

place the following in ftp.inp

open ftp.mydomain.comuser usernameXYZ123get file.txtbye
XYZ123 is a place holder for the password.

The batch file will execute the ftp session and retrieve or send any file specified.
This topic is 16 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked