WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ShellOp

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

aFileCopy Problem


Question:

Can AFileCopy do recursive copying when a specific file extension is specified? I observed that it will copy with *.*, but it does not with *.ext.

Answer:

The mask applies to both files and directory names.

Thus if a subdirectory has a *.ext extension, it will look inside that directory also.

Yes. That makes it useless for that, but that is how the Windows Shell does it (at least in known versions)

Using a FileCopy UDF, you could configure the code to do exactly what you want.

Start with...

http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/nftechsupt.web+WinBatch/UDF~-~UDS~Library/Directory~and~Deltree~UDFs+DelTree~and~Xcopy.txt


Article ID:   W16862
File Created: 2014:07:18:09:49:38
Last Updated: 2014:07:18:09:49:38