I needed to get a listing of files inside a folder and any subfolders in that of a certian type. Also the list needed to be sorted by date. I had code to do all this but I thought instead of just building all that and then building a sort I could just have the program create a dos batch job and run that (so everything I wanted is listed and sorted from only a few lines of code).

Anyway the .bat writes everything out to a file and I need a way to find out if that file is still being written to. I searched the forum and found one thing on files still being written to but that code causes it to crash.