Believe it or not, this little gem is one I learned over 20 years ago now when I worked for AST Computers. We had a need to exercise some hard drives and one of the tech team there wrote this quick but simple batch file to do so. Copy the following lines to Notepad and then save it as a file called t.bat.
Copy t.t + t.t t1.t
ren t1.t t.t
Now you’ve saved it as a file called t.bat, copy t.bat to t.t
You can then run the file. It basically doubles in size over and over till it runs out of disk space at which point it will error out. Simple, but effective… this simple batch file helped us find a critical flaw in our AST computers when running under OS/2 that we had sold to a major insurance company at the time.