PDA

View Full Version : Custom Command


Dundee
05-01-2005, 10:55 PM
I'd like to make a command that will execute something in every subfolders of the selected folders.

This works for depth 1:

cwd %f
site rescan
cdup
Delay 5


I'd like to make it for a depth 2.
Can somebody help?



Exemple:

/MyNewAlbums/VA-80's_bests
/MyNewAlbums/VA-Rock_Classics
are selected.

With depth 1, "site rescan" will be executed in
/MyNewAlbums/VA-80's_bests
/MyNewAlbums/VA-Rock_Classics




/MyNewAlbums
/IncomingAlbums
are selected.

With depth 2, "site rescan" will be executed in
/MyNewAlbums/Britney_S-I_Suck_So_Much
/IncomingAlbums/Chopin-Greatest_hits
etc

DayCuts
05-01-2005, 11:49 PM
%f refers to the selected items, obviously the items in subdirs of where you execute the command wont be selected, therefor the command isn't run on them.

Being able to roll through all subdirs of selected dirs and execute the command in each would likely require scriptability. (because it would have to request a LIST then parse the results) This is something FFXP does not offer.

I wonder, are there any plans to add scriptability to flash in the future? and/or expand on the current availible 'script commands' in the custom command editor?

(perhaps with a way to call a custom command from within the custom command, the use of LIST and COMPARE within that command (after entering the subdir) could be rigged up to semi work, but i am unsure of the proper use of compare in custom commands)

Dundee
05-01-2005, 11:55 PM
Haha!
I now understand why there were no good exemples of custom commands!

MxxCon
05-02-2005, 12:45 AM
Originally posted by Dundee
Haha!
I now understand why there were no good exemples of custom commands! what do you mean no good examples?
we have 5 pretty complete sets of custom commands for a few different servers...
those are pretty good examples