PDA

Click to See Complete Forum and Search --> : Return dos text


JavDer
Jan 10th, 2001, 12:05 AM
Hi!

I'm using an external dos pplication with my vb applicattion, but i can't know when it have an error.

Is there any way to return text from a dos application?

Thanx

Jan 10th, 2001, 06:17 AM
Here is an send commands to dos to list a directory and then output it to a text file.

Shell "command.com /c dir /b c:\ > C:\cListing.txt",0

'then open it:
Open "C:\cListing.txt" For Input As #1
Text1.text = Input$(LOF(1), 1)
Close #1

JavDer
Jan 10th, 2001, 09:44 PM
Thanx!