|
-
Nov 16th, 2000, 04:09 PM
#1
Thread Starter
Lively Member
Help!
I have an application that looks for data files to come into a directory. Once a file enters the directory, its name is checked against a database to see if it has a corresponding executable. If it does, the application kicks off the corresponding 2nd executable.
For example joe.dat kicks off joe.exe
This 2nd execuatable reads the data out of a flat file into a SQL 7 db using ADO.
Here is my problem. When I run the first application it may well kick off up to 10 different 2nd applications because there might be up to 10 different files in the folder. These applications are all updating and appending to the same table in my Sql7 db. I am anticipating record locking issues and watching the system bomb out. does anyone have any suggestions that would let me use what I already have and queue the 2nd applications so that I don't run in to record locking issues?
-
Nov 16th, 2000, 04:26 PM
#2
Fanatic Member
..
Simply,
Once the app finds that a file has a corresponding .exe
Shellsmart that executable i.e do not look any more until
that application is done running...
If it is done, then grab the next file and do the same thing
Shellsmart would get a handle on the kicked off application
and doevents until the process is released
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|