PDA

View Full Version : Custom command sequence


Teflon
01-24-2002, 10:31 AM
Hello, I have a quick question about the custom command feature

OK I have a group of files that I would like to rename to <filename>.bak. Here is the custom command I made:

RNFR %f
RNTO %f.bak

Now this command works great when doing one file at a time but when I select multiple files, flashfxp executes the commands out of order. It tries to execute the first command on all the files then tries to execute the second command on all the files. This becomes a problem when using the RNFR/RNTO commands because RNTO must directly procede RNFR. Here what happens when using my custom command on multiple files.

RNFR temp1.txt
350 File or directory exists, ready for destination name
RNFR temp2.txt
350 File or directory exists, ready for destination name
RNFR temp3.txt
350 File or directory exists, ready for destination name
RNFR temp4.txt
350 File or directory exists, ready for destination name
RNFR temp5.txt
350 File or directory exists, ready for destination name
RNFR temp6.txt
350 File or directory exists, ready for destination name
RNTO temp1.txt.bak
250 RNTO command successful.
RNTO temp2.txt.bak
503 Bad sequence of commands.
RNTO temp3.txt.bak
503 Bad sequence of commands.
RNTO temp4.txt.bak
503 Bad sequence of commands.
RNTO temp5.txt.bak
503 Bad sequence of commands.
RNTO temp6.txt.bak
503 Bad sequence of commands.


Is there anyway to work around this or am I stuck with having to do this one at a time, which can be very tedious at times?
Any comments are appreciated.

Thanks

bigstar
01-24-2002, 07:34 PM
RNFR / RNTO is not possible due to the design of the custom commands, you must use REN <old> <new>

Teflon
01-24-2002, 09:13 PM
Well I guess I have to do it the hard way because some servers dont support the REN command.

bigstar
01-25-2002, 01:40 AM
REN is a macro, it translates into a RNFR / RNTO sequence.

bulbi
01-25-2002, 07:43 AM
what do you use to make and use macros because I can't use REN ?
Please, explain the syntax in custom commands.

bigstar
01-25-2002, 09:32 AM
Before I go into that, which build are you using? You need the latest v1.4.2.

bulbi
01-25-2002, 12:49 PM
yes i have the version 1.4.2 build 830
and i try to make this in custom command REN <a> <b> and it reply command not understood

bigstar
01-26-2002, 12:34 AM
apparently what I told you was incorrect, the correct syntax is "ren <old>*<new>" the seperator is a * and not a <space>, since the file name may contain a space.

bulbi
01-26-2002, 12:50 PM
oki thanks to help me but it's doesn't work
Do you think i must change an option to allow use REN because i always have the message error ren command not understood

bigstar
01-26-2002, 03:05 PM
No, there is no option. It works perfectly fine here.