RE: Creating folder 04-11-2014, 03:39 PM
#11
(04-10-2014, 06:09 PM)alok9shm Wrote: Okay I'll give you a simple hint and you do it yourself, else I'm ruining your programming skills.Is there any "for i = 1 to 9 do..." code in cmd? If not, I want to know if cmd can move from a folder, for example "C:\a\b" to "C:\a"
The following code makes folders in this fashion:
1>2>3>4>5>6>7>8>9
Code:SET /a i=0 :loop IF %i%==9 GOTO END SET /a i=%i%+1 md %i% cd %i% GOTO LOOP :end
Now, all you need to do is to use one more for loop to create folders 1 to 10 for each of the folders.
Good Luck
Like this code:
Code:
str = "C:\a\b"
remove(str,length(str)-2,2)"2" is the number of characters you wanna remove

![[+]](https://sinister.li/images/modern/collapse_collapsed.png)