I've got to move the content of a boat load of folders into other folders. The folders to be moved are named by a number, i.e. 1001, 1002, 2001, 2002, etc. Within each of these folders are files that I will copy over to the new locations. My problem is that when I do a vl-directory-files to get these 'numbered' folders, there are other files I don't need, ie. 'plot.log', 'abc', 'abc123'. I only need the ones which are just numbers.
I've worked out how to get a list of the files and the return is: ("1001" "1002" "plot.log" "abc" "abc123")
I need only the numbered items in the list into a list: ("1001" "1002")
Any ideas?
And this doesn't work (foreach item Folders (vl-remove (not (wcmatch item "*#")))). It will return the 'abc123'.
Thanks,
Rabbit