Heres the situation
I have a folder on the Network called Main and another called Sheets.
As files are updated they are placed in Main for a machine to download. Can be 1 or 20 possibly and None are named the same. I need to copy the identical file from Sheets also.
Yes they are named identical but they go to different folders on the Hard drive like Data1 and data2. One is a machine print and other is for the user.
This will be in a batch file so %% is required. And if a file exists we overwrite
For %%A in (H:\Main\*.*) Do Copy /Y H:\Main\%%A C:\Data1 For %%A in (H:\Main\*.*) Do Copy /Y H:\Sheets\%%A C:\Data2
Does that look correct or someone with Dos skills can help me out here?



Help
Back to top











