sd2000sd:
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.
Note that ShellExecute lpParameters is the field for such parameters.
So just try this:
string myRunPath="notepad.exe"; string myFile="c:\\sample.txt"; ShellExecuteW(0,0,myRunPath,myFile,0,SW_SHOW);

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
I mean:
notepad.exe c:\sample.txt
How can I send arguments to that?
I use:
and :
but these line does not work:
//but these line does work(without arguments):