![]() ![]() Or for /l %i in (9,1,120) do md C:\Dropbox\Development\Lec-%iįor /l %%i in (9,1,120) do md C:\Dropbox\Development\Lec-%%i mkdir is a synonym for md and can be used in its place.īelow I show both alternatives, first from a cmd shell (command line), and second using a batch file.Īs a bonus (although not asked for in the original question) there is a bash shell alternative as well.įrom a cmd shell: cd C:\Dropbox\Development.Change the md Lec-%%i command to md C:\Dropbox\Development\Lec-%%i.To create the sub-folders (sub-directories) in a specific directory (that is not the current directory), you can do one of the following: If I were to create the sub-folders in a specific directory, such as C:\Dropbox\Development, would I need to cd to that directory first? Assuming I'm using the cmd shell? How can I can create all these sub-folders at once, using my naming scheme?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |