Originally posted here by gore
I skipped a lot of chapters until I came to the part on system and exec because well, that was what I wanted to do I guess. I'll go back to them after I play with these.
That's why I'm saying that you could use shell scripting for this, since it's mostly Bash commands [and well system commands but they get called through bash].

Although I used to do the same thing as you in C code since I was lazy to write batch file...

P.S. Please spell my name in lowercase

P.P.S. Well enjoy code! There are some nifty things you can do with two lines of perl [well one if you like obfuscation], 10 lines of C or a screenfull of Java