01-31-2024, 10:50 AM
(This post was last modified: 01-31-2024, 10:54 AM by PhilOfPerth.)
Thanks, all. But I'm afraid I wasn't able to get what I needed from any of those replies. (yes, Terry, I read all of those tuts).
There are obviously huge holes in my knowledge in this area. This code:
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
returns a blank window.
shell "CMD"
gives the c: prompt, which I can then use by entering that window and using DOS commands (e.g. dir c: ) to get the tree structure.
I'd like to do all of that from within my programme. I suspect it's something to do with batch files, but I don't know how to run these from PE.
There are obviously huge holes in my knowledge in this area. This code:
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
returns a blank window.
shell "CMD"
gives the c: prompt, which I can then use by entering that window and using DOS commands (e.g. dir c: ) to get the tree structure.
I'd like to do all of that from within my programme. I suspect it's something to do with batch files, but I don't know how to run these from PE.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) 
Please visit my Website at: http://oldendayskids.blogspot.com/

Please visit my Website at: http://oldendayskids.blogspot.com/