Results 1 to 3 of 3

Thread: How to get Dos output from CreateProcess?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4

    How to get Dos output from CreateProcess?

    Is there a way to get the output of a program using the CreateProcess API (or any other API call) ? Example, I want to pull the output of 'copy /?' right into the application and right now I have to do copy /? >C:\test.txt to save it to a .txt file and then read .txt file into my VB application. Is there a way around this ?

    Thank you in advance for time.


    Scott

  2. #2

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    4
    found the answer to my own question. for those of you who are interested, here is three links

    http://www.codeproject.com/atl/redirect.asp

    http://www.planetsourcecode.com/xq/A...s/ShowCode.htm

    http://www.codeguru.com/misc/redirect.shtml


    LaRock

  3. #3
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    nice links.

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