How can I write command line for creates many folders then that .bat file will delete automatically, please?
Why would you do something like that? If you only use the command for creating the folders once, you could just do it via cmd.
you could determine bat file location with
%0 and delete it- but it's not wise to delete a script were the reason to write it is to use it multiple times…
After creating all folders execute "DEL %~f0" at end of batch file. %~f0 will expand to full path of current batch file. This will delete batch file after execution.