+ Reply to Thread
Results 1 to 2 of 2

Thread: ShellExecute does not work!

  1. #1

    ShellExecute does not work!

    ShellExecute does not work!

    ShellExecute(NULL, "open", "C:\WINDOWS\system32\notepad.exe", NULL, NULL, SW_SHOWNORMAL) ;

    It returns error code "The system cannot find the file specified."

    Any clue?

  2. #2
    I just ran your code and found that your are using only single '\' in the path.

    Rather it should be:

    ShellExecute(NULL, "open", "C:\\WINDOWS\\system32\\notepad.exe", NULL, NULL, SW_SHOWNORMAL) ;

    Give it a try.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts