Go Back   FlashFXP Forums > > > >

General Discuss anything and everything related to FlashFXP

 
 
Thread Tools Display Modes
Old 01-24-2002, 10:31 AM   #1
Teflon
Junior Member
 
Join Date: Jan 2002
Posts: 3
Default Custom command sequence

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
Teflon is offline  
Old 01-24-2002, 07:34 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

RNFR / RNTO is not possible due to the design of the custom commands, you must use REN <old> <new>
bigstar is offline  
Old 01-24-2002, 09:13 PM   #3
Teflon
Junior Member
 
Join Date: Jan 2002
Posts: 3
Default

Well I guess I have to do it the hard way because some servers dont support the REN command.
Teflon is offline  
Old 01-25-2002, 01:40 AM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

REN is a macro, it translates into a RNFR / RNTO sequence.
bigstar is offline  
Old 01-25-2002, 07:43 AM   #5
bulbi
Junior Member
 
Join Date: Jan 2002
Posts: 5
Default

what do you use to make and use macros because I can't use REN ?
Please, explain the syntax in custom commands.
bulbi is offline  
Old 01-25-2002, 09:32 AM   #6
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Before I go into that, which build are you using? You need the latest v1.4.2.
bigstar is offline  
Old 01-25-2002, 12:49 PM   #7
bulbi
Junior Member
 
Join Date: Jan 2002
Posts: 5
Default

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
bulbi is offline  
Old 01-26-2002, 12:34 AM   #8
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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.
bigstar is offline  
Old 01-26-2002, 12:50 PM   #9
bulbi
Junior Member
 
Join Date: Jan 2002
Posts: 5
Default

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
bulbi is offline  
Old 01-26-2002, 03:05 PM   #10
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

No, there is no option. It works perfectly fine here.
bigstar is offline  
 

Tags
command, commands, file, rnfr, rnto

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
banned hache General Discussion 1 04-05-2005 07:02 AM


All times are GMT -5. The time now is 04:05 PM.

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