Welcome Guest.   Make a donation to an author on the site September 16, 2014, 04:33:34 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: UNFINISHED: Upload files listed in text file  (Read 5578 times)
schnarkle
Supporting Member
**
Posts: 9


View Profile Give some DonationCredits to this forum member
« on: August 19, 2010, 01:45:37 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?   Wink
Logged
MilesAhead
Member
**
Posts: 4,835



View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: August 21, 2010, 01:33:49 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.
Logged

"Genius is not knowing you can't do it that way."
- MilesAhead
skwire
Moderator
*****
Posts: 4,068



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: August 21, 2010, 03:11:00 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.
Logged

schnarkle
Supporting Member
**
Posts: 9


View Profile Give some DonationCredits to this forum member
« Reply #3 on: August 23, 2010, 08:59:27 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.
Logged
skwire
Moderator
*****
Posts: 4,068



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #4 on: August 25, 2010, 12:31:33 AM »

Would you mind PM'ing me a sample of that XML file, please?
Logged

shmuel1
Participant
*
Posts: 32

View Profile Give some DonationCredits to this forum member
« Reply #5 on: July 19, 2012, 04:59:18 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.
Logged
4wd
Supporting Member
**
Posts: 3,332



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: July 20, 2012, 08:46:11 PM »

wput

Formatted for Generic Code with the GeSHI Syntax Highlighter [copy or print]
  1. wput ftp://host.com -i files.txt
Logged

I do not need to control my anger ... people just need to stop pissing me off!
kyrathaba
N.A.N.Y. Organizer
Honorary Member
**
Posts: 3,010



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: September 23, 2012, 07:07:24 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.
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

skwire
Moderator
*****
Posts: 4,068



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #8 on: September 23, 2012, 11:50:41 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/
Logged

kyrathaba
N.A.N.Y. Organizer
Honorary Member
**
Posts: 3,010



while(! dead_horse){beat}

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: September 25, 2012, 07:11:42 AM »

Thanks for that link, skwire. I may have to investigate...
Logged

Win 7 Home Premium 64bit-SP1 AMD Athlon II X2 220 Socket AM3 (938) @ 2.1GHz 6GB RAM Firefox 26.0
_________________________________________________________________________________________

I'm fighting against patent trolls. Join me and tell your representative to support the #SHIELDAct: https://eff.org/r.b6JJ /via @EFF

My DC page: http://kyrathaba.dcmembers.com | My blog: http://williambryanmiller.com/ | Proofreading Service: http://bit.ly/1fQSqQP

BigVent
Member
**
Posts: 35



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #10 on: May 09, 2014, 10:00:44 AM »

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
Logged

~BigVent
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.05s | Server load: 0.07 ]