I have a windows form application. I had converted it to a set up and called its exe file from web application using activeX
as follows:-
var executableFullPath = "C:\\ScannerExeFile\\Scannerapplication.exe";
var shellActiveXObject = new ActiveXObject("WScript.Shell");
shellActiveXObject.Run(executableFullPath,1, false);
shellActiveXObject = null;
Now i want to pass a string parameter to the windows form application.Can anyone help me?
I got the answer.The code is below:-
In windows application, you should edit the main function in Program.cs as
In class, you should change the constructor as follows:-
where Arguments is a string array