I have a few directories that can have from few hundred to few thousands files and their internal directory structure changes occasionally. From time to time I have to just copy everything that is in these directories to a specific location (which must in turn be cleaned first so only the most recent version of source files ends in the new location).
There are two problems in this process and I suspect they are probably caused by the same thing so I'm lumping both questions in the same topic.
First: empty directories do not get copied with the simple script I'm using:
[code]Delete "K:\p*" FORCE QUIET NORECYCLE
Delete "K:\r*" FORCE QUIET NORECYCLE
Delete "K:\d\IGMaker*" FORCE QUIET NORECYCLE
Delete "K:\d\prgInstall*" FORCE QUIET NORECYCLE
Copy "P:*" to "K:\p" FILTER=SysFiles_ignore
Copy "R:*" to "K:\r" FILTER=SysFiles_ignore
Copy "D:\IGMaker*" to "K:\d\IGMaker" FILTER=SysFiles_ignore
Copy "D:\prgInstall*" to "K:\d\prgInstall" FILTER=SysFiles_ignore[/code]
The Filter I'm using is
Second: sometimes I get a random "file is in use" (so it can't be deleted), but if I click "retry" it goes through (even after a fresh restart of the computer and not running anything major in the background!). This happens completely random, on files of different types / sizes / different directories. Could it something with the buffer?
