DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: UNFINISHED: Upload files listed in text file  (Read 54,190 times)

schnarkle

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11
UNFINISHED: Upload files listed in text file
« on: August 19, 2010, 06: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
    • Coding Snacks
Re: Upload files listed in text file
« Reply #1 on: August 21, 2010, 06: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

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Upload files listed in text file
« Reply #2 on: August 21, 2010, 08: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.com/DtTipsFtpBatchScript.php

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

schnarkle

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11
Re: Upload files listed in text file
« Reply #3 on: August 23, 2010, 01:59 PM »
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

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: Upload files listed in text file
« Reply #4 on: August 25, 2010, 05:31 AM »
Would you mind PM'ing me a sample of that XML file, please?

shmuel1

  • Supporting Member
  • Joined in 2012
  • **
  • Posts: 48
Re: UNFINISHED: Upload files listed in text file
« Reply #5 on: July 19, 2012, 09: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

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: UNFINISHED: Upload files listed in text file
« Reply #6 on: July 21, 2012, 01:46 AM »
wput

Code: (generic)
wput ftp://host.com -i files.txt
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: UNFINISHED: Upload files listed in text file
« Reply #7 on: September 24, 2012, 12:07 AM »
@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.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: UNFINISHED: Upload files listed in text file
« Reply #8 on: September 24, 2012, 04:50 AM »
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
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: UNFINISHED: Upload files listed in text file
« Reply #9 on: September 25, 2012, 12:11 PM »
Thanks for that link, skwire. I may have to investigate...
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

BigVent

  • Member
  • Joined in 2013
  • **
  • Posts: 36
    • Participated in NANY Challenge Once
Re: UNFINISHED: Upload files listed in text file
« Reply #10 on: May 09, 2014, 03:00 PM »
My apologies for not placing a link sooner.

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

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

Original address: https://www.donationcoder.com/forum/index.php?topic=23779.0