masken,
What kind of db file is it? I mean if it's SQL, you can run a SQL job to shutdown and backup the db.

If it's some other home made db, then try testing it with an Open() cmd and check the return code.

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.