J
James
is there a 3rd party tools or simple batch scripts or VB.NET 2003 to lock
files
? Here is the problem
1. i've a config.ini FIXED in a local directory eg c:\configuration. Only
this file exist in this directory.
2. the contents of config.ini is follows
key=country_code
3. The vendor software i m using only recognise c:\configuration\config.ini
as parameters as the vendors told me that the path is hard-coded in the
above directory.
4. i've many countries and each key represents different countries. If i run
the software in many physical machines, it works because there can never be
contention of the config.ini file. However if i want to save costs and run
the program on ONE machine only, i must create a batch file or script to
check whether config.ini is currently in use. If not in use, the program can
use this file and run. If in use, wait for x minutes before re-try.
5. How shld i approach the above problem ?
files
? Here is the problem
1. i've a config.ini FIXED in a local directory eg c:\configuration. Only
this file exist in this directory.
2. the contents of config.ini is follows
key=country_code
3. The vendor software i m using only recognise c:\configuration\config.ini
as parameters as the vendors told me that the path is hard-coded in the
above directory.
4. i've many countries and each key represents different countries. If i run
the software in many physical machines, it works because there can never be
contention of the config.ini file. However if i want to save costs and run
the program on ONE machine only, i must create a batch file or script to
check whether config.ini is currently in use. If not in use, the program can
use this file and run. If in use, wait for x minutes before re-try.
5. How shld i approach the above problem ?