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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -