I need to generate a lot of junk files, with a random directory structure and random contents (and file names) under a specific folder (like "C:\tmp\"), is there a program that can do that for me?
I don't know of any program off the top of my head but perhaps a vbscript making use of the windows command
Usage of fsutil can be found in the Microsoft Documentation (it's for XP but works in Vista/7)
You'll have to do some work to build the directory structure but that will help with the files.
There might be some testing tool out there that will automatically generate a folder/file structure but I doubt there's much need for it outside of QA/Testing.
I have used "Dummy File Creator" for this, it can make 000 files or randomised mess files http://sumtips.com/2011/02/5-ways-to-create-dummy-files.html
a simple text "batch" could be made like this,And fed to the program
I do not think it will create directories. It could fill up a disk faster than copying from another disk. I do not use it that much because copying from another disk some big files, also allowed for doing a compare.
Best thing do is use polymorphic code, note please be very careful using this code. I am not responsible for your damages, this creates random batch files that also generate random invisible folders, it also generates random invisible vbs files that completely change the original code itself, but still executes the same commands as before. Then lastly the code starts it's own file. (Random code + random folders + random files = mass chaos). Hence the point? This can mess your computer up so be cautious!
The polymorphic engine without the dangerous code is right here, encase you wish to apply it to your personal code.
The way it works is that you have to set you code to random junk nonsense to make it harder to understand. (this example is known by definition as obfuscation). for example;
then you want to add your variables to the fifth line of the polymorphous generator.
This should result in your code changing each time it's run, In case anyone tried to stop your code, this would make it more difficult to understand. Hope you find this helpful.