×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

how to upload list of multiples files from txt/csv file with ftp

how to upload list of multiples files from txt/csv file with ftp

how to upload list of multiples files from txt/csv file with ftp

(OP)
Hi everybody
I'm asking your help because i have a list of files to be uploaded with a script but i dont have any idea how to do it. (i'm not a programmer ponder)

I can create a list in txt or csv.

can you give me a script to do it?


example: files.txt

123456.jpg
767676.jpg
929292.jpg

thanks a lot
Bruno
Italy

RE: how to upload list of multiples files from txt/csv file with ftp

When you say you have no ide, do you mean you don't know how to loop through the file nor how to ftp the files contained therein? Or is it just the FTp you are struggling with?

RE: how to upload list of multiples files from txt/csv file with ftp

(OP)
i mean that i'm not a programmer so i'm not able to write a vbscript code so thats the reason why i'm asking in this forum.

i can make a list in txt or csv with all the files to be transferred via ftp but then i need a vbscript code to do it automatically

i hope this will help you
thanks a lot strongm

RE: how to upload list of multiples files from txt/csv file with ftp

(OP)
a vbscript that will transfer all the file that are in the txt or csv list file

RE: how to upload list of multiples files from txt/csv file with ftp

Something like:

CODE -->

Public Sub ftp()
    Dim ftpFolder
    Dim fso
    Dim path
    
    path = "d:\downloads\deleteme\" ' path to wherever your files are stored
    
    With CreateObject("shell.application")
        Set fso = CreateObject("Scripting.FileSystemObject")
        Set ftpFolder = .Namespace("ftp://ftpsite.com")
        ' Set ftpFolder = .Namespace("ftp://username:password@ftpsite.com") ' use this pattern instead if ftp site requires a username and password
        With fso.OpenTextFile(fso.BuildPath(path, "files.txt")) ' I've assumed text file with list of files is  in same folder as the files themselves for the purposes of this example#
            Do Until .AtEndOfStream
                ftpFolder.CopyHere fso.BuildPath(path, .ReadLine)
            Loop
        End With
    End With
End Sub 

RE: how to upload list of multiples files from txt/csv file with ftp

(OP)
thanks.

i've tried but it doesnt work (even if there's no error warning) so i dont understand why
can you please write me the exact string of ftp access details if they are something like:

user: GGGGGGGGGG
password: KKKKKKKKK

ftp host: example.nuun.cloud

ftp folder: 333
is it right this one?:

KKKKKKKKK@example.nuun.cloud/d2/" target="_blank">ftp://GGGGGGGGGG:KKKKKKKKK@example.nuun.cloud/d2/

RE: how to upload list of multiples files from txt/csv file with ftp

(OP)

CODE -->

ftp://GGGGGGGG:KKKKKKKK@example.nuun.cloud/d2/ 


RE: how to upload list of multiples files from txt/csv file with ftp

>ftp host: example.nuun.cloud
>ftp folder: 333
>user: GGGGGGGGGG
>password: KKKKKKKKK

Ok, so you want a path on the ftp server, so should be:

CODE -->

ftp://GGGGGGGGGG:KKKKKKKKK@example.nuun.cloud/333 

RE: how to upload list of multiples files from txt/csv file with ftp

(OP)
it doesnt work cry

RE: how to upload list of multiples files from txt/csv file with ftp

Unfortunately it works just fine here, tested before posted (against a public FTP server that requires a username and password), and I can't replicate your problem (except by feeding it an incorrect ftp site .

Quick test you might try, though. Do you sytill have Intrernet Explorer on your PC? If so, it is one of the few browsers that still supports the FTP protocol, so try launching i.e. and try the problematic URL in it to see what happens. Alternatrively feed the URL to Windows File explorer (which also supports FTP)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close