I have a link with parameters that may be passed to the application, pretty much a line like this:
If I copy and paste the link above into Start -> Run, it works just fine and launches the Program with the Sample.txt attached to it, but when I try to open it with ShellExecute like this:"C:\Documents and Settings\All Users\Start Menu\Program.lnk" "C:\Documents and Settings\PC12\Desktop\Sample.txt"
it doesn't work. Why?Code:ShellExecute(NULL, _T("Open"), _T("\"C:\\Documents and Settings\\All Users\\Start Menu\\Program.lnk\" \"C:\\Documents and Settings\\PC12\\Desktop\\Sample.txt\""), NULL, SW_SHOW);




Reply With Quote