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?
Is there a way to set Core FTP Filename Formatting via cmd?
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?
"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?
-
- Site Admin
- Posts: 1011
- Joined: Mon Mar 24, 2003 4:37 am