I am using a one up counter from a file to make ID keys for a db file. I have found a way to dynamically create a .dat file using this one up counter so I can have a log seperate from the database that coincides. I do this with the following command:
system "cat > $num.bat"; #(creates 19.bat if the one up counter is at 19)
now the question....how can I add a command in this string that will not only create the new file but close it automatically so the process dies?
update by boo_radley : title change