I want to be able to run an external app like : notepad.exe using ShellExecuteW() and send an argument like : c:\sample.txt to that.
How can I send arguments to that?
int ShellExecuteW(int hWnd,int lpVerb,string lpFile,string lpParameters,int lpDirectory,int nCmdShow);
but these line does not work:
string myRunPath="notepad.exe c:\sample.txt";
//but these line does work(without arguments):
Note that ShellExecute lpParameters is the field for such parameters.
So just try this:
Please enable the necessary setting in your browser, otherwise you will not be able to log in.