Guest User

Untitled

a guest
Jun 21st, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. I. If the same name folder does not exists then create one
  2. II. move the file to the folder
  3.  
  4. @echo off
  5. :my_loop
  6. IF [%1]==[] GOTO completed
  7. if not exist %1"" (
  8. set /P "create=Its a file, want to create a folder? Y/[N] "
  9. if /I "%create%"=="Y" ( rem This loopdoes not run
  10. mkdir %~n1
  11. move "%1" "%~n1"
  12. )
  13. )
  14. cd %1
  15. set /p "clearc=Press any key"
  16. SHIFT
  17. GOTO my_loop
  18.  
  19. :completed
Add Comment
Please, Sign In to add comment