Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21273

Getting results from a command prompt into vb6

$
0
0
Hello,

I have been trying to find a way to get the amount of all files on a hard drive. vb6 has no direct solution, so I thought that maybe there was a way for vb6 to communicate with a command prompt and do it that way. The command prompt CAN do this and the syntax is:
Quote:

dir /s /b d:\ |find /c "\"
And it is quite fast. But then how can I get the results of that into vb6? The Shell() and Command() functions do not appear to be generic enough to handle the results from any executed command...they are specifically tied to launching apps.

Thanks for any help!

Viewing all articles
Browse latest Browse all 21273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>