Archived
1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
pascal/HACKING/EXECTEST.PAS
2001-11-30 12:14:44 +01:00

13 lines
221 B
Plaintext

{ $M $4000,0,0 }
program ExecTest;
uses Dos;
begin
SwapVectors;
Exec('c:\command.com','');
SwapVectors;
if DosError<>0 then WriteLn('Dos-Error: ',DosError);
WriteLn('Exitcode: ',DosExitCode);
end.