Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 04-12-2014, 09:26 AM   #1
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default Is it possible to map folder name before fxp ?

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.:

Code:
/some/path/on/the/source/server/2000/2000-01-01/
to
Code:
/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?

Last edited by brackebuschtino; 04-12-2014 at 09:44 AM.
brackebuschtino is offline  
Old 04-12-2014, 07:53 PM   #2
DayCuts
Senior Member
FlashFXP Beta Tester
 
Join Date: Dec 2003
Posts: 421
Default

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
Code:
{
RNFR %f
RNTO $replace("%f","2000-","")
}
Command 2
Code:
{
RNFR %f
RNTO $replace("%f","-","")
}
DayCuts is offline  
Old 04-14-2014, 05:00 AM   #3
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default

Thanks for your reply and this hint. But, where would i have to put this code to execute it?

Last edited by brackebuschtino; 04-14-2014 at 06:01 AM.
brackebuschtino is offline  
Old 04-14-2014, 05:40 AM   #4
X3
Senior Member
FlashFXP Beta Tester
 
X3's Avatar
 
Join Date: Feb 2006
Location: location, location.
Posts: 324
Default

Commands Menu
__________________
Regards
X3 is offline  
Old 04-14-2014, 06:02 AM   #5
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default

Thank you!
brackebuschtino is offline  
Old 04-14-2014, 03:13 PM   #6
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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.
bigstar is offline  
Old 04-14-2014, 03:49 PM   #7
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default

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.
brackebuschtino is offline  
Closed Thread

Tags
folder, fxp, pattern, source, target


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:39 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)