Guest User

Untitled

a guest
Oct 23rd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. @echo on
  2. set Location=C:test
  3. Set Destination=D:DevelopmentTestIn
  4. Set FileName=DailyVB.*
  5. Set SearchResult=SearchResult.txt
  6. Where /R "%Location%" "%FileName%" > %SearchResult%
  7. For /f "delims=*" %%a in (%SearchResult%) Do (If Not Exist "%Destination%%%~na" MD "%Destination%%%~na")
  8. For /f "delims=*" %%b in (%SearchResult%) Do (echo Copy "%%b" "%Destination%%%~nb" & Copy /-Y "%%b" "%Destination%%%~nb")
  9. pause
  10. Explorer "%Destination%"
Add Comment
Please, Sign In to add comment