Hi Dave:
there is the thing:
i have a executable command for exampl is :abc
you can type abc in commandline then it will return a string.
then i want to use winform to do this, so write a C# code doing same
function as type abc in commandline window and return a string.
finally show this string in textfields.
the whole process won't pop up commandline window at all.
Thanks
Nick
Dave said:
Are you asking how to accept input into your WinForms app via the command line?
If so:
public static void Main(string[] args)
{
foreach (string arg in args)
System.Windows.Forms.MessageBox.Show(arg);
}
Executing an application with the above code as the Main entry point and
the following command line will produce two message boxes,
each with one of the arguments specified:
MyApp.exe "c:\Path\File Name.txt" -Switch1