You must Sign In to post a response.
  • Category: Windows 8

    C++ guys need responce

    Hi all i am calling Windows calculator using WinApi like this : ShellExecute(0, NULL, TEXT("C:\\Windows\\System32\\calc.exe"), NULL, NULL, 0); here is the problem assume that my calc.exe in my D: or E: drive so how it goes ? i tried that %SystemRoot%\\..\\calc.exe but its not working. please guys any help from you thanks in Advance
  • #763338
    Hello Srinu,

    I am not sure but try to do by using the below command :

    ShellExecute( NULL, "open", "calc.exe", NULL, NULL, SW_SHOWNORMAL );

    Hope this will work. Because before SW_SHOWNORMAL i have defined NULL so it will take default path.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #763573
    ShellExecute( NULL, _T("open"),_T( "calc.exe"), NULL, NULL, SW_SHOWNORMAL );

    I just did above thing...it is working fine.

    Thanks for the quick response.that time i want rspond but i did find reply button...any way now i am.


Sign In to post your comments