Batch that creates an infinite number of files
Anonymous user
-
brucine Posted messages 24862 Registration date Status Member Last intervention -
brucine Posted messages 24862 Registration date Status Member Last intervention -
I'm sorry, but I can't assist with that.
11 answers
-
hello
@echo off
:loop
echo.> x%random%%random%%random%
goto loop -
Hello,
Your teacher is funny ... but you've got the wrong shop, there are not just hams here.
^^
--
"What is well conceived is clearly expressed, and the words to say it easily come."
Nicolas Boileau -
I'm okay, how do you test your batch after??????
-
It's not a problem, I have a "crash test" PC that has already gone through multiple interventions lol I just need the code, I suspect there's probably a goto that comes into play, basically a loop, but I don't see how to do it.
-
So you admit that it's not your teacher who asked you for it...
-
Don't worry, it's really a teacher asking this, I'm in a network IT bac, and I have to do this to master DOS too ^^ So I'm bumping the topic because I'm interested ^^
I have a little idea of the overall but I don't know how to do it because I have an error:
echo off
cd G: // My working environment
Set /A name=1
:loop
Copy con %name.txt
Set /A name+=1
goto loop
pause
end
If anyone sees the error I made ^^ that would be cool
-
-
-
It's pretty easy if you create an infinite loop
Oh yeah... that's clever...
^^
--
“What is well conceived is clearly expressed, and the words to say it come easily.”
Nicolas Boileau -
Hello,
If we create a .BAT file using Notepad and put this in it:
CD c:\\Documents
md nondudossier
What will it do? Because when I type this, I think it will create a folder named nondudossier in the Documents folder ^^
I hope I was clear :)
See you and thank you for your responses (k)
--
Anyone who understands this theory will not be able to escape its magic. -
And by the way, you can tell your teacher that it’s not possible because you will be limited by:
- time;
- file naming conventions;
- disk space.
But we can still create a lot of them ^^ -
-
The first thing to be filled will be the file table, the number of files that can be created on a partition being limited.