Possible Duplicate:Faster DirectoryExists Function?
I want to check if any file exists on a network drive. But FileExists is too slow if the drive is disconnected. How can I check it with some timeout?
Examples are welcome.
Departure
Faster DirectoryExists Function?
I asked the same question. The bottom line is that, unfortunately, you cannot avoid these long timeouts if the file does not exist.
, , FileExists , FileExists -, .
, FileExists CreateFile ( NtCreateFile), CreateFile .
- , , , , . DFS, .
, , , despart, FileExists . , - TerminateThread - API.
Source: https://habr.com/ru/post/1725702/More articles:Tomcat 6.0 does not allow the use of a generic ArrayList to use Bean - jspmultiple requests in one connection? - pythonWPF Bind Textbox IsEnabled to Listbox SelectedItem - wpfHow do you quickly check if a network exists using Delphi 5? - file-ioC ++: # enable file search? - c ++Address Search WndProc - windowsNtdll! kifastsystemcallret - c ++mysql select unique records - mysqlAn HTML table with a fixed header, Resizable Columns and may be smaller than the width of the content - jquerygetting HEAD element from firefox plugin from overlay.js - javascriptAll Articles