windows - Copy file from folder if not exist in a different folder with batch file -
i trying copy files folder if not exist in different folder batch file. have far.
for %%f in ("p:\ferm batch reports\*.*") if not exist "\staging$\ngebatchrecipeoriginal" copy %%f "\staging$\ferm batch reports\" %%f in ("p:\yeast prop batch reports\*.*") if not exist "\staging$\ngebatchrecipeoriginal\" copy %%f "\staging$\yeast prop batch reports\" when run this, nothing.
macro %~nxf extract filename extention:
for %%f in (dir1\*.*) if not exist "dir2\%%~nxf" copy %%f dir3
Comments
Post a Comment