Sherlock, Ric wrote: > Options for copying a directory tree: > 0. write a verb using fcopynew verb from files.ijs and verbs from > dir.ijs to copy each file in the tree > 1. do the same but use winapi functions. > 2. call xcopy > > > I haven't found anything in my forum/wiki search that covers this issue. > Has anybody already tackled this and is happy to share advice/code? > > More on my desired usage: > I have a set of directory trees. > Each tree contains files and directories that together define a > configuration for a simulation program. > > Under programmatic control, I want to copy a chosen template to a > sub-directory of the users directory.
xcopy may well do what you want. However, in a similar situation, I used zip, i.e. call zip (from J) to zip the source tree, then unzip in the target directory. The zip program takes care of the tree structure. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
