Hello,
I need to permanently check the availability to a specified directoy path. (e.g. X:\Data\Project1\", where X:\ is a drive on a LAN network)
I therefore create a thread which checks this path every 3 seconds.
My problem is that all check methods I tried have a very high timeout time.
First attempt: (Write & Read a dummy file)
1) OpenFIle(..)
2) WriteInFile(..)
--> the OpenFile function from the FormatIO Library stalls for approx. 90 seconds if the drive X: is not available, until it reports a timeout
Second attempt:
us the function GetFileWritability(..) from the Toolbox library, - this one has approx.a 20 seconds timeout
I'd like to get response times of one second or lower. So if someone pulls the ethermet connection from the server, I somehow need to know within that time.
Questions:
- Are there other ways to check the connectivity?
- Can I somehow lower the timeout values for the above functions?
Thanks for your help!
Greg
.