DOS prompt window to textbox.

I want to wrap a GUI around Robocopy, but I want it pretty. How do I redirect the output generated by this "DOS" command into a text box or some other control on a VB6 form?
LVL 32
DrDamnitAsked:
Who is Participating?
 
unknown_routineCommented:
Hi,
Look Here
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q173/0/85.ASP&NoWebContent=1


Make the sample project
however you need  to change the code inside the command button click to:(aasuming you use 2000 or XP)




ExecCmd ("C:\winnt\system32\cmd.exe /c path")

Note that change the inner string as you want . in your case it is path to that exe file

probably ExecCmd ("C:\Robocopy.exe")  ( use real path to robocopy)

Note 2: the sample code uses  a listbox for the output dont forget to change it to a text box.


Regrads.





0
 
smiling_aceCommented:
do you mean you would do commands on cmd.exe and display the output on textbox in visual basic?
0
 
DrDamnitAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.