Results 1 to 4 of 4

Thread: help with retreiving data from the command prompt needed!

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2

    Question

    Hi,

    Is it possible to retreive data generated from an Command prompt application and use the data in a VB application
    without using a file for middle storage.

    E.g.

    the following data is genereted and presented on the command prompt,

    c:> START

    Asking your own node

    Showing all nodes

    Network Node Status CS
    VCOMTST1 UNIXSRV1 3 , Read/Write link online 2
    NET1 COLUMBUS 3 , Read/Write link online 2

    sendentry..:00002
    totentry..:00002

    Can I instead of echoing it to the screen, retreive the information in to a variable in VB?

    thanks,
    Patric Kronberg

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    736
    Look here

    http://forums.vb-world.net/showthrea...threadid=34131

    for an example.

    The Command Function should get you what you need.

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    2

    Question Help needed with retreiving data from the command line

    Hi,

    I don't know if I don't understand the Command function or you missunderstood me. The command function does "only" (?) return the arguments when starting a VB application on the command line.

    I start the "DOS" application from within the VB application and the restult from the "DOS" application are echoed onto the screen, now I would (if possible) retreive the information into an variable in my VB application.

    thanks,
    Patric

  4. #4
    Guest
    Surely an API function can do something done in DOS. Maybe not, but try http://www.vbapi.com/ for a fat stash of API functions. If you can't find it then I have been a complete waste of time.

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