@ShadoooW Here is how the finished utility looks.
Because it's written vb2008 it requires the .net framework 3.5 in order to actually run. Fortunately I believe that all versions windows from Vista (I think) onwards come with that already. It comes with a four page pdf manual. While I have tested it as thoroughly as I can, I have not tested it with the sort of number of files that you intend to use it for. In this case please regard it as a beta - i.e. it works for me but thoroughly read the manual before using.
I intend to put it up on the vault but as it was built because of your request I am offering you the chance to try it first. Just pm me and I'll reply with the address for you to download it from.
@Baaleos While that is a nice snippet, as written it doesn't solve the problem as written at the start of this thread. The brief was for it to process around 500 files and not just one. Because of the need to process that number of files you would probably need extra code to process command-line arguments due to the fact that the best way to use a small program to do such trimming would be to include a call to it in a batch file. Then there is the error handling...
TR