upload two files witg commands

Core FTP client questions and answers
Locked
Johan
Posts: 1
Joined: Tue May 01, 2012 6:57 am

upload two files witg commands

Post by Johan »

Hallo

I want to upload two files at the same time.
I have this command:

coreftp.exe -s -O -site BB -u "C:\RunningReport\BanakJuni-2012.txt"

and want to upload the following files at the same time:
"C:\RunningReport\BanakJuni2012.xls"

Any help?
ForumAdmin
Site Admin
Posts: 1011
Joined: Mon Mar 24, 2003 4:37 am

Post by ForumAdmin »

two ways you can go about this:

1) Copy the files to a directory, then use a wildcard:
-u "C:\RunningReport\B*"

2) Put filenames in a file with the STOR command and pass the script:
-scal <list_of_files.txt>

list_of_files.txt contains

STOR "C:\RunningReport\BanakJuni-2012.txt"
STOR ""C:\RunningReport\BanakJuni2012.xls"


It seems like it would be an easier option if the -u parameter accepted either a list of files from a text file or separate multiple filenames. I'll update this thread when a new option becomes available.
Locked