EXECUTE Examples
Example 1:
|
|
|
|
|
|
|
|
|
|
The program would be temporarily suspended while the file TFILE.TXT is deleted by the operating system. Normal screen I/O generated by this instruction would appear on the screen.
Note that since the "del" command is a part of the Windows shell, "cmd" must be loaded. The name of the command shell varies by operating system.
Example 2:
|
|
|
|
|
|
|
|
|
|
The program would be temporarily suspended while the file TFILE.TXT is deleted by the operating system. However, normal screen I/O generated by this instruction would be redirected to the null system file and not appear on the screen or be stored in a file on disk.
Note that since the "del" command is a part of the Windows shell, "cmd" must be loaded. The name of the command shell varies by operating system.
Example 3:
|
|
|
|
|
|
|
|
|
|
The use of the greater than sign `>' tells the operating system that the screen I/O normally attributed to the instruction is redirected (not shown on the CRT) into the file `dirfile.txt'.
Note that since the "dir" command is a part of the Windows shell, "cmd" must be loaded. The name of the command shell varies by operating system.
![]() |