Setting cmd with default command and user defined message
Posted
by
gpuguy
on Super User
See other posts from Super User
or by gpuguy
Published on 2012-06-27T08:01:04Z
Indexed on
2012/06/27
9:18 UTC
Read the original article
Hit count: 329
On button click in a winform application I am executing cmd.exe file (Using system("cmd.exe");), which opens perfectly fine and displays the following:
Microsoft Windows XP [Version 6.1.7601]
(C) Copyright 1985-2001 Microsoft Corp.
C: A\Documents\Visual Studio 2010\Projects\WinformTest\WinformTest>
What I want is when a user click the button, the cmd.exe open with default command and a message like this:
Please change command options and press enter to get started experimenting
C: A\Documents\Visual Studio 2010\Projects\WinformTest\WinformTest> reduction -x 33554432 -i
Notice a new command and a message is already there.
Can anybody tell me how to go for this?
© Super User or respective owner