|
-
July 28th, 1999, 06:39 AM
#1
Using WinExec() Function
How can I use this funtion to execute file with *.lnk extention, Kindly i want to execute the shortcut in sendto directory.
-
July 28th, 1999, 09:00 AM
#2
Re: Using WinExec() Function
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";
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|