[AccessD] OT: (kinda) FTP Question. Heeeeelp

Stuart McLachlan stuart at lexacorp.com.pg
Mon Sep 20 17:27:08 CDT 2010


But do they need to be in the same application or can you just run multiple instances of an 
FTP application.  Since you are doing it all with batch files, why not just run multiple instances 
of the built in Windows CLI FTP client. 

Assuming your "chunked" files are myfile.z01,myfile.z02....

In your main Batch file , START the  UPLOAD.BAT file below once for each "chunked" file :

...
FOR %f  IN (*.z??) DO START UPLOAD %f 
...


Now for the file UPLOAD.BAT:

@echo off
REM UPLOAD.BAT
echo user MyUserName> %1.DAT
echo MyPassword>> %1.DAT
echo bin>> %1.DAT
echo put %1>> %1.DAT
echo quit>> %1.DAT
ftp -n -s:%1.DAT SERVERNAME.COM
del %1.DAT


UPLOAD.BAT will:

1.  create a command file myfile.z0x.DAT which contains the necessary FTP commands
2.   Create an FTP instance and upload myfile.z0x based on the command file.
3.   Delete the command file.  


Because you are calling it with START,  you will have multiple instances of it running 
asynchronously.

-- 
Stuart


 On 20 Sep 2010 at 16:54, Robert wrote:

> Jim,
>   I'm looking to upload a split zip folder via command line (bat file)
>   (all
> other functions (zip, slit, move, and rename) are command line based).
> Some of these files can be several gigs large, so there is a
> tremendous need for multiple transfer threads...
> 
> WBR
> Robert
> 
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman
> Sent: Monday, September 20, 2010 4:42 PM To: 'Access Developers
> discussion and problem solving' Subject: Re: [AccessD] OT: (kinda) FTP
> Question. Heeeeelp
> 
> Robert,
> 
>   I've used Move It Freely from the same folks for a number of years
>   and
> never had a problem with it, so I've never had the occasion to call
> them.
> 
>   What is it specifically that your looking for on the command line? 
>   And
> why the multi-threading?  Do you really have that much to transfer?
> 
> Jim. 
> 
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert
> Sent: Monday, September 20, 2010 2:29 PM To: 'Access Developers
> discussion and problem solving' Cc: robert at servicexp.com Subject: Re:
> [AccessD] OT: (kinda) FTP Question. Heeeeelp
> 
> Thanks guys for the suggestions. I have confirmed with them that you
> cannot upload a file/folder via command line.  
> 
> On that same note, I *** THINK **** I may have found a program that
> offers both, but their customer service is terrible / (would not
> answer a simple question - I have to find out for myself or purchase
> the program (NO pre sales ANYTHING support)). I know right, scary...
> 
> 
> WS_FTP Pro 12.2
> 
> I will be evaluating it over the next couple of days...
> 
> WBR
> Robert
> 
> 
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com
> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby
> Sent: Monday, September 20, 2010 12:58 PM To: Access Developers
> discussion and problem solving Subject: Re: [AccessD] OT: (kinda) FTP
> Question. Heeeeelp
> 
> I too use 3D-FTP, probably at the recommendation of Gustav, long ago. 
> Love the program.
> 
> I don't actually automate it though.
> 
> John W. Colby
> www.ColbyConsulting.com
> 
> On 9/20/2010 2:17 AM, Gustav Brock wrote:
> > Hi Robert
> >
> > We used 3D-FTP for this - not by command line though but as a COM
> > object
> and the API - for an app uploading thousands of pictures per batch to
> a web site. It ran at an amazing speed compared to the Windows FTP
> command line alternative with no errors for years until the client
> ceased business: > > http://www.3dftp.com/3dftp.htm > > However, when
> I look at the site now, everything about the API seems to have
> vanished after version 7. They are at version 9 now. We used version
> 4.01 and I still use it as a normal FTP client. You may address them
> about the API or how to obtain a version 7 should you wish to follow
> the COM route. > > /gustav > > >>>> robert at servicexp.com 20-09-2010
> 05:05>>> > Considering the fact that this is the most talent group
> professional that I > know of, I have yet another Command Line
> question.  I have searched high and > low, and can't seem to find a
> solution. > > Does anyone know of a good Multi-thread upload FTP
> client, that also has a > solid Command Line interface: > > Stuart
> helped me work out the main section of my "project", and I really >
> thought this was going to be the easy part.. > > After I have the
> split zip in a folder, I need to be able to send the folder > using
> the same bat file via a multi-threaded upload. > > I can find great
> Multi-threaded FTP clients, but they have terrible Command > Line
> support, OR I can find a great Command Line FTP Client but it doesn't
> > have Multi- threaded uploading... > > I have looked at: > > CuteFTP
> > SmartFTP > Filezilla > FTPRush > > > FlashFXP > > ... HELP..... > >
> -- AccessD mailing list AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd Website:
> http://www.databaseadvisors.com
> 
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
> 





More information about the AccessD mailing list