I have a DOS batch script file that is scheduled to run hourly, to move any PDF files from a bunch of folders, and put them in one folder. When I view the target folder in Windows Explorer, all of the PDF files have a padlock icon on and are not visible over on the workgroup share.
The source folders are shared Dropbox folders (don't know if that makes a difference?). The target folder is on a local drive, but is shared across a workgroup, and the PDF's do not show up on other computers unless the padlock icon is removed. I eventually found that if I change the permissions to add user 'everyone' the padlock icon disappears and the files are visible again, although there are other PDF files in the target folder that have come from a different source, and these don't have the 'everyone' user set, but still show up correctly. If I drag and drop the files using Windows Explorer the same problem arises.
The batch consists of multiple 'move' commands:
move "c:\users\owner\Dropbox\User1\*.pdf" "c:\shares\IncomingPDFs\"
move "c:\users\owner\Dropbox\User2\*.pdf" "c:\shares\IncomingPDFs\"
So... is the batch file the best way of collecting all the PDFs into one folder? Is the 'permissions' thing the actual problem, or does this just get round it?
I could use copy or xcopy but then I would then need to delete the original files so wildcards are out in case the users have added any files between the processing of the copy command and the delete command. Can DOS handle 'for each PDF file in folder...'?
Any suggestins welcome.