Hello,
I have a little counting problem. My code writes a file to a directory and everytime a file is copied to a dir, a record is inserted into my table.
It is not allowed that a directory contains more than 150 files. So everytime a file is copied, my code count the records in the table. If ther are more than 150, a new dir is created. However, everytime there are 150 records added, a new dir must be created.
My code put 150 files int the first dir, 300 into the second, 450 into the third, etc.
I CAN'T GET THE CODE RIGHT!
Can someone give me some tips for this 'little' problem.
Every 150 records (files) extra, a new dir must be created.
Thanks, thanks, thanks in advantage!
Albert
I have a little counting problem. My code writes a file to a directory and everytime a file is copied to a dir, a record is inserted into my table.
It is not allowed that a directory contains more than 150 files. So everytime a file is copied, my code count the records in the table. If ther are more than 150, a new dir is created. However, everytime there are 150 records added, a new dir must be created.
My code put 150 files int the first dir, 300 into the second, 450 into the third, etc.
I CAN'T GET THE CODE RIGHT!
Can someone give me some tips for this 'little' problem.
Every 150 records (files) extra, a new dir must be created.
Thanks, thanks, thanks in advantage!
Albert