PDA

View Full Version : Is it possible to map folder name before fxp ?


brackebuschtino
04-12-2014, 09:26 AM
Hello, i'd like to know if and how it is possible to map the name of the source directory to a different format for the target directory before fxp, e.g.:

/some/path/on/the/source/server/2000/2000-01-01/
to
/some/path/on/the/target/server/2000/2000-01/0101/

I found the "Advanced Transfer" option, but this requires to manually enter the new value for a huge amount of folders, which is not very comfortable. Is there a way to define a source pattern to be mapped to a target pattern?

I would like to queue whole 2000 folder from source server and would like to have its content getting mapped automatically to the structure of the 2000 folder and its subdirectories on the target server. Is that possible? If so, how?

DayCuts
04-12-2014, 07:53 PM
The simply answer is no, because FlashFXP does not have scriptability with string functions.

However if you are sending to an empty folder on the destination server then you can transfer them all as they are, then run some custom commands on them to change the names... but I am guessing this is not what you are doing otherwise you could automate the renaming outside of FlashFXP a million different ways.

Command 1
{
RNFR %f
RNTO $replace("%f","2000-","")
}

Command 2
{
RNFR %f
RNTO $replace("%f","-","")
}

brackebuschtino
04-14-2014, 05:00 AM
Thanks for your reply and this hint. But, where would i have to put this code to execute it?

X3
04-14-2014, 05:40 AM
Commands Menu (https://oss.azurewebsites.net/webhelp/Topics/commands-menu.htm)

brackebuschtino
04-14-2014, 06:02 AM
Thank you!

bigstar
04-14-2014, 03:13 PM
I'm afraid the above suggestions will most likely not work, since you're wanting to transform the full absolute path on the target and these commands don't work this way.

If you're very careful you could save the queue to a file and then open it in notepad++ and update the target path using a regexp find/replace.

brackebuschtino
04-14-2014, 03:49 PM
In fact this is how i worked around this Problem. My hope was just that i oversaw a potentially sciptable capability of the app. And so i decided to ask.

Anyway, thanks for your responses. By the way, this forum lacks a Thank-button. ;)