Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I. If the same name folder does not exists then create one
- II. move the file to the folder
- @echo off
- :my_loop
- IF [%1]==[] GOTO completed
- if not exist %1"" (
- set /P "create=Its a file, want to create a folder? Y/[N] "
- if /I "%create%"=="Y" ( rem This loopdoes not run
- mkdir %~n1
- move "%1" "%~n1"
- )
- )
- cd %1
- set /p "clearc=Press any key"
- SHIFT
- GOTO my_loop
- :completed
Add Comment
Please, Sign In to add comment