Solved

Output of a shell command in VB

Posted on 2003-11-04
7
262 Views
Last Modified: 2010-05-03
I want to run an Exe from VB. To run this Exe, I am using Shell command. My Exe returns 2 numbers. I want to redirect the output of this shell command in a string. Please tell me how can I do it. ?
Thanks
Barkha
0
Comment
Question by:barkhamadan1
  • 2
7 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 9680127
0
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 20 total points
ID: 9681589
Uff!, what a question history you have!
Better if you forget that i posted something here.
Good luck
Cheers
0
 
LVL 3

Expert Comment

by:NBrownoh
ID: 9682254
do you want to send data to another program through the shell command?
0
 

Expert Comment

by:p_hip
ID: 9682273
Is the executable one of yours, or is it a third party component ?

If it is yours then you could get it to load a delimited string into the clipboard, and read the clipboard when Control returns to your calling program.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question