Baker Abu-Dhaim
July 28th, 1999, 06:39 AM
How can I use this funtion to execute file with *.lnk extention, Kindly i want to execute the shortcut in sendto directory.
|
Click to See Complete Forum and Search --> : Using WinExec() Function Baker Abu-Dhaim July 28th, 1999, 06:39 AM How can I use this funtion to execute file with *.lnk extention, Kindly i want to execute the shortcut in sendto directory. Erich Ruth July 28th, 1999, 09:00 AM If I wanted to run 'notepad.exe' using WinExec() I would use const char cmdLine[]="\\windows\\notepad.exe"; UINT result = WinExec(cmdLine, SW_SHOW); if (result<32) { // handle error } I don't know whether the *.lnk extension effects the use of the WinExec() command. Try using cmdLine[]="\\yourfile.lnk"; codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |