topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 1:49 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: UNFINISHED: Upload files listed in text file  (Read 39861 times)

schnarkle

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11
    • View Profile
    • Donate to Member
UNFINISHED: Upload files listed in text file
« on: August 19, 2010, 01:45 PM »
I've tried tons of different google searches but I can't find anyone that's tried this so here goes.

I would like a script that would read a text/xml file with content like this:

123.jpg
234.jpg
555.jpg
aaa.jpg
atr.jpg
etc.jpg

and upload via FTP the listed files from a set folder.
Possible?   ;)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • View Profile
    • Donate to Member
Re: Upload files listed in text file
« Reply #1 on: August 21, 2010, 01:33 PM »
Sounds like somthing you could do with Windows command line FTP

http://www.nsftools.com/tips/MSFTP.htm

I've checked a couple of the Gui type ftp like FileZilla that I use, and they are designed mainly to drag & drop files onto a cue.  But many file managers have ftp client built in now. You could check them out.  I know for sure FreeCommander does but I think it's a popular file manager feature now.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Upload files listed in text file
« Reply #2 on: August 21, 2010, 03:11 PM »
Do the files change often?  If not, you can do this easily via commandline FTP's built-in scripting (as MilesAhead mentioned).  There are MANY websites detailing this.  Here's one:

http://www.dostips.c...psFtpBatchScript.php

If you need something more custom written, let me know.

schnarkle

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11
    • View Profile
    • Donate to Member
Re: Upload files listed in text file
« Reply #3 on: August 23, 2010, 08:59 AM »
Yes, it's basically an xml file that changes daily.  It identifies jpgs to look for, and I'd like to upload only the files listed in that xml file.  So yes the images listed would change daily.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: Upload files listed in text file
« Reply #4 on: August 25, 2010, 12:31 AM »
Would you mind PM'ing me a sample of that XML file, please?

shmuel1

  • Supporting Member
  • Joined in 2012
  • **
  • default avatar
  • Posts: 48
    • View Profile
    • Donate to Member
Re: UNFINISHED: Upload files listed in text file
« Reply #5 on: July 19, 2012, 04:59 AM »
I could make you an AutoIt script for this.

Do you still need this?

I would make the script to work together with FileZilla FTP program, unless you have another free FTP program that you prefer.

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,640
    • View Profile
    • Donate to Member
Re: UNFINISHED: Upload files listed in text file
« Reply #6 on: July 20, 2012, 08:46 PM »
wput

Code: Text [Select]
  1. wput ftp://host.com -i files.txt

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • View Profile
    • Donate to Member
Re: UNFINISHED: Upload files listed in text file
« Reply #7 on: September 23, 2012, 07:07 PM »
@skwire: will Windows' command-line FTP app handle FTP that requires encryption? In other words, could it be used to upload files to DonationCoder via a script?

@shmuel1: I'd be interested in seeing your AutoIt script, if it can be used to cause FileZilla to upload files to a site requiring FTPES encryption.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: UNFINISHED: Upload files listed in text file
« Reply #8 on: September 23, 2012, 11:50 PM »
will Windows' command-line FTP app handle FTP that requires encryption? In other words, could it be used to upload files to DonationCoder via a script?

No, I use Alex FTPS for that.  http://ftps.codeplex.com/

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • View Profile
    • Donate to Member
Re: UNFINISHED: Upload files listed in text file
« Reply #9 on: September 25, 2012, 07:11 AM »
Thanks for that link, skwire. I may have to investigate...

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • View Profile
    • Donate to Member
Re: UNFINISHED: Upload files listed in text file
« Reply #10 on: May 09, 2014, 10:00 AM »
My apologies for not placing a link sooner.

Very old topic (I know) but just in case a solution was never found:

https://www.donationcoder.com/forum/index.php?topic=36620.0
~BigVent