![]() |
|
Mass Folder Creator (Much Improved) - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: Mass Folder Creator (Much Improved) (/Thread-Mass-Folder-Creator-Much-Improved) Pages:
1
2
|
Mass Folder Creator (Much Improved) - ArkPhaze - 09-30-2012 Code: @ECHO OFF
SETLOCAL ENABLEDELAYEDEXPANSION
set /a count=10
set /a buffer=1000
if [%1]==[] (
set /a i=0
:cont
if !i! lss %count% (
set /a val=!i!*!buffer!
start cmd.exe /c %0 !val!
set /a i+=1
goto :cont
)
exit
)
set /a c=%1+!buffer!-1
for /l %%G in (%1,1,%c%) do (
md f_%%G
)
goto :eofWhat this does is create 10 * 1000 (buffer * count variable) folders, except it's much faster because you have several batch files running at a single point in time creating each range of 1000 (buffer) folders. So here, we have in this example 1 batch script running to create folders 0-999, another for 1000-1999, and another for 2000-2999, etc... So that we result in 0-9999 folders, which is exactly 10 000 folders because we include 0 as a folder. It does this by starting a new instance of itself to run, with custom/modified arguments each time for where to begin and leave off with creating folders; ranges. RE: Mass Folder Creator (Much Improved) - kairo1981 - 05-03-2013 You could write some more code faster windows 7 to zamuliło it was needed or that format? because I see that you're a programmer? I mean here is to destroy the system of windows 7 infected bat? RE: Mass Folder Creator (Much Improved) - kairo1981 - 05-03-2013 You could write some more code faster windows 7 to zamuliło it was needed or that format? because I see that you're a programmer? I mean here is to destroy the system of windows 7 infected bat? RE: Mass Folder Creator (Much Improved) - ArkPhaze - 05-04-2013 (05-03-2013, 09:46 PM)kairo1981 Wrote: You could write some more code faster windows 7 to zamuliło it was needed or that format? because I see that you're a programmer? I mean here is to destroy the system of windows 7 infected bat? I did not understand a single thing you just said... I have no clue what it has to do with my script though either. :huh: RE: Mass Folder Creator (Much Improved) - ArkPhaze - 05-04-2013 (05-03-2013, 09:46 PM)kairo1981 Wrote: You could write some more code faster windows 7 to zamuliło it was needed or that format? because I see that you're a programmer? I mean here is to destroy the system of windows 7 infected bat? I did not understand a single thing you just said... I have no clue what it has to do with my script though either. :huh: RE: Mass Folder Creator (Much Improved) - kairo1981 - 05-04-2013 Can you write something more something more powerful for windows 7 system? RE: Mass Folder Creator (Much Improved) - kairo1981 - 05-04-2013 Can you write something more something more powerful for windows 7 system? RE: Mass Folder Creator (Much Improved) - ArkPhaze - 05-04-2013 (05-04-2013, 09:58 AM)kairo1981 Wrote: Can you write something more something more powerful for windows 7 system? More powerful? What exactly are you expecting to happen? lol this is just a mass folder creator... And there's really not much in batch either that would be OS strict, and in which would require something to be written for Windows 7 in specific either. I read that you want to "destroy" Windows 7 though, but with a batch script? You can't be serious... I think you've got a bit of research to do before you start saying things like that lol. Here you go: ![]() Code: @echo Your system is destroyed...RE: Mass Folder Creator (Much Improved) - ArkPhaze - 05-04-2013 (05-04-2013, 09:58 AM)kairo1981 Wrote: Can you write something more something more powerful for windows 7 system? More powerful? What exactly are you expecting to happen? lol this is just a mass folder creator... And there's really not much in batch either that would be OS strict, and in which would require something to be written for Windows 7 in specific either. I read that you want to "destroy" Windows 7 though, but with a batch script? You can't be serious... I think you've got a bit of research to do before you start saying things like that lol. Here you go: ![]() Code: @echo Your system is destroyed...RE: Mass Folder Creator (Much Improved) - kairo1981 - 05-04-2013 thznk you ehheeh a little more polite to one, two, you can do something better or not? difficult to answer? |