I have problems with file operations, that when I use the $M compiler command, that file operations "sometimes" not work. They do nothing. When I remove the $M command, than EXEC do nothing and the file operation make "NO" problems.
Sorry, I have problems with recreate the error. Have anyone a idea, why?
{$M 4000,0,0} {Do not work without this compiler command to use the the EXEC}
uses dos, windos;
begin
SwapVectors;
Exec('c:\command.com', '/c dir');
SwapVectors;
{When I use file operation, it do nothing}
{File operations do not work with the $M 4000,0,0 compiler command}
{Why?, I need both}
{ ex. assign, fileattr, reset, close }
end.