How to resolve the algorithm Get system command output step by step in the M2000 Interpreter programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Get system command output step by step in the M2000 Interpreter programming language
Table of Contents
Problem Statement
Execute a system command and get its output into the program. The output may be stored in any kind of collection (array, list, etc.).
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Get system command output step by step in the M2000 Interpreter programming language
Source code in the m2000 programming language
Module CheckIt {
Dos "cd "+quote$(Dir$) +" & cmd /U /C dir *.txt >txt.out";
Document txt$
Repeat {
Wait 100
Try {
load.doc txt$, "txt.out"
}
} Until doc.len(txt$)<>0
Report txt$
}
Checkit
You may also check:How to resolve the algorithm Humble numbers step by step in the Ring programming language
You may also check:How to resolve the algorithm Sorting algorithms/Sleep sort step by step in the REXX programming language
You may also check:How to resolve the algorithm Compound data type step by step in the Ada programming language
You may also check:How to resolve the algorithm 9 billion names of God the integer step by step in the Lasso programming language
You may also check:How to resolve the algorithm Comments step by step in the X10 programming language