View Full Version : how to disable "Command Tokens"
shawn1
10-27-2004, 01:07 PM
Command Tokens: %f %d
sometimes we found the directory names contain these strings. When we tried to execute a command script to deal with these directories, we got a problem. So, How to disable command Tokens?
For example:
I made a command to rename a directory name:
{
rnfr %f
rnto z%f
}
But when I tried to rename a directory such as :
/aaa%d%f/
the flashfxp will prompt to let me input %d, and replace %f as the file name.
Any ideas?
Thanks a lot!
bigstar
10-27-2004, 03:02 PM
Which version/build of FlashFXP are you using? This seems to work properly with FlashFXP v3.0.2
shawn1
10-27-2004, 08:54 PM
3.0 b 1015
shawn1
10-28-2004, 10:09 AM
OK, I tried 3.0.2 b 1044
And, yes, it fixed the problem in the example I mentioned above. But still there are lots of problems exist about this issue.
For example:
CWD %f
If the %f point a directory like this : a%da
ffxp will prompt for the %d, but in fact, it's just a string in the directory name.
Another example:
rnfr %d[Name of Dir/File]
rnto a
If you input a directory name for the %d like this: a%da, ffxp will ask you again for the %d in the name a%da. Actually, a%da is just a name of the directory name.
So, my suggestion about this issue is that we should be able to customize Command Tokens and save it to ffxp's ini file. (for example, we can choose %%f to replace %f)
Or, change ffxp to override % by %%. (That means, if %% is found, it become the char %. But if only % is found, it become the lead char for the command tokens .)
Thanks a lot for thinking about this issue!
Linkster
10-28-2004, 11:40 AM
Why on earth would you create a directory with %d in the name. C'mon people. This will not be changed to support that.
DayCuts
10-28-2004, 12:52 PM
%? sequences in directory names can be quite common in some circumstances, such as some types of web servers.
Seems like a perfectly valid bug report / fix request by shawn1. Not everybody can decide the naming scheme on servers.
Please note that I'm not affected by this myself, I just had to write a reply to what reminded me of the support forum for a well-known ftp server that is constantly in beta... ;)
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.