Solved

DOS prompt window to textbox.

Posted on 2004-09-21
3
836 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:DrDamnit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Accepted Solution

by:
unknown_routine earned 500 total points
ID: 12117031
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
 

Expert Comment

by:smiling_ace
ID: 12119336
do you mean you would do commands on cmd.exe and display the output on textbox in visual basic?
0
 
LVL 32

Author Comment

by:DrDamnit
ID: 12119991
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

751 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