could some one tell me how to get the output from a msdos command? for example "dir" into a text box?
thanx
Printable View
could some one tell me how to get the output from a msdos command? for example "dir" into a text box?
thanx
You could output the command results to a file first:
Code:'list all files in C:\ and write to a file
Shell "command.com /c dir /b c:\ > C:\cListing.txt", vbHide
'then open it:
Open "C:\cListing.txt" For Input As #1
Text1.text = Input$(LOF(1), 1)
Close #1
Thanx. I'll try that, but i guess i may encounter problems when i am running another DOS app that involves input from the user such as:
dir /p