Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Shell output??

Status
Not open for further replies.

Sensis

Programmer
Aug 29, 2000
3
GB
Hi,
I use the Shell function to execute a script that extracts files from Sourcesafe and places them elsewhere. When the function is called, a dos window opens up and shows all the files being copied one at a time. I know I can hide the window with the function setting vbHide and what I would like to do is to show each line as it is being processed on my VB form. So far, all I have been able to do is to direct the output from the script into a text file using -oResults.txt. I can only read this after the whole thing has finished though! Is it possible to be able to retrieve each part of the output from the script as it is coming through?

Any help will be appreciated,

Shaun
 
Shaun,
Sourcesafe exposes quite a bit of functionality via COM. I'd suggest going this route, rather than using a dos script.
 
Thanks,
Fortunately I found the Sourcesafe Type Library in VB earlier today and it has saved me a lot of hassle (don't know why I didn't see it before!!!).

Thanks anyway

Shaun
 
I have the same problem, only I am attempting to shll ot to MASM 6.11, and there is no control or COM feature. --Dan Hirsch
CEO of DanSoft
 
In which case you may want to peruse this thread: thread222-255803
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top