--- In [email protected], "udaydw" <[EMAIL PROTECTED]> wrote:
>
> At present I get file names with path and extension from Folders
> including subfolders by a ContextFolder entry
> 
> AllNames=file.listfiles("|",1)
> clip.set(AllNames)
> 
> Then I paste this in to a text editor and have to manually edit
> using "find and replace" to get only the file names without path
> and extension. It is a tedious job if multiple subfolders are
> present. I was trying file.Allfiles and file.name services using
> the file plugin, but some how the proper way is eluding me.
> Thanks for help in advance. Dr. Uday Wandkar 


This should do it using file.allfiles. You could put the clip.clear in
the main command block, and the other commands into the "More
Commands" block of your ContextFolder command list entry. Yahoo will
split the file.allfiles line, but it should be all on one line.

clip.clear
file.allfiles(_file_, "clip.append(file.name(_file_)++esc([EMAIL PROTECTED]@nx,
[EMAIL PROTECTED]))", 1)
messagebox("OK", "Contextfolder processing Completed.")

Regards,
Sheri



Reply via email to