Is there a way to set Core FTP Filename Formatting via cmd?

Core FTP client questions and answers
Post Reply
plavigne
Posts: 3
Joined: Wed Dec 18, 2013 6:28 pm

Is there a way to set Core FTP Filename Formatting via cmd?

Post by plavigne »

Taken from another post:

[quote]In the section where you set the wildcard, check the "Use Core FTP filename formatting"

Then you can use filenames similar to *nix:


AG_%m-%d-%Y_%a.mp3


%Y - year
%m - month
%d - day

%H%M%S - hour/minute/second

a% abbreviated day.

%% for percent sign.[/quote]

I want to do something similar via command line script that I have. Is there a way to do this?
plavigne
Posts: 3
Joined: Wed Dec 18, 2013 6:28 pm

Post by plavigne »

for clarification:

"C:\Program Files\CoreFTP\coreftp.exe" -s -newest -O -site XXXXX -d /XXXX/XXXXXXXX/XXXXXXXXXXXXX/file*.csv -p C:\XXX

is the current script i'm using.

I have found issues with it:

#1 : -newest does not work the way I would like, and simply grabs the newest file on the ftp (so specifying the file is almost pointless)
#2 : if I take away newest, then it does not grab any files (because file*.csv apparently doesn't work - but if i make it *.csv, it will work, but it will take ALL of the files)

So what I want to do:

use remotemove to move the file away after downloading it, into an archive folder on the ftp server - but this requires wildcard programming like the title states..

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

Post by ForumAdmin »

What build number is being used? Not able to reproduce this issue at this point.
plavigne
Posts: 3
Joined: Wed Dec 18, 2013 6:28 pm

Post by plavigne »

Sorry, I didn't know anyone replied to this.

Version of CoreFTP installed at our site:

V2.2, build 1789

The FTP server IS a coreftp server, I believe, but I don't know the version of coreftp server being used as I do not access to it.
Post Reply