Setting cmd with default command and user defined message
- by gpuguy
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?