Advertisement
alvsjo

test2

Oct 18th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2.  
  3. set dirName=%~1
  4. if not exist "%dirName%\" goto nemaFoldera
  5. shift
  6.  
  7. cd "%dirName%"
  8.  
  9. :uslov
  10. if "%1"=="" goto kraj
  11.  
  12. mkdir "%1"
  13.  
  14. for %%f in ("%1*") do (
  15.     time /t >> "%%f"
  16.     date /t >> "%%f"
  17.     copy "%%f" "%1\"
  18.     del "%%f"
  19. )
  20. shift
  21. goto uslov
  22.  
  23.  
  24.  
  25.  
  26.  
  27. :nemaFoldera
  28. echo Nema foldera!
  29.  
  30. :kraj
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement