При чтении фаила выводится сообщение об ошибке что фаил занят др. приложением. Как это можно исправить.?
Вот КОд.
if WinExec('Command.com /c dir h:\soft >h:\tmp\test.txt', SW_HIDE) < 32 then
ShowMessage('Error !!!');
if FileExists('h:\tmp\test.txt') then
begin
AssignFile(f,'h:\tmp\test.txt');
Reset(f);
end
else
ShowMessage('Error reading of file');