01-31-2024, 01:45 AM
Usually the easiest way is to juust pipe the results into a text file and then read it back into your program.
SHELL "c:\dir > temp.txt" <-- this runs that shell command to C:\DIR and then pipes the output to "temp.txt".
OPEN "temp.txt" FOR INPUT AS #1
DO UNTIL EOF(1)
LINE INPUT #1, text$
PRINT text$
LOOP
^And then something similar to the above will read that file and print the results to the screen.
SHELL "c:\dir > temp.txt" <-- this runs that shell command to C:\DIR and then pipes the output to "temp.txt".
OPEN "temp.txt" FOR INPUT AS #1
DO UNTIL EOF(1)
LINE INPUT #1, text$
PRINT text$
LOOP
^And then something similar to the above will read that file and print the results to the screen.