Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
I execute the dos command 'c:\dir ' through shellexecute function in dos prompt and I want to get output string to a string variable. can any body suggest the shortest solution of this problem....



Thanks in advance
Vivek Chauhan
Posted
Updated 6-Dec-10 23:00pm
v2

1 solution

Here a nice article about that:
Redirecting an arbitrary Console's Input/Output[^]

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900