Results 1 to 3 of 3

Thread: Return dos text

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    7

    Post

    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

  2. #2
    Guest
    Here is an send commands to dos to list a directory and then output it to a text file.

    Code:
    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2001
    Posts
    7
    Thanx!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width