Can not get msconfig .exe to run in the system32 folder shellexecute Delphi

Posted by grant1842 on Stack Overflow See other posts from Stack Overflow or by grant1842
Published on 2012-10-11T23:07:51Z Indexed on 2012/10/26 23:01 UTC
Read the original article Hit count: 260

Filed under:
|
|

Im on Win 7 64b. Im trying to run msconfig from my delphi app. The msconfig.exe file is in the system32 folder . I copied the msconfig.exe to the c:\ and it works great. This looks like some kind of permission issue.

var
errorcode: integer;
 begin
   errorcode :=
ShellExecute(0, 'open', pchar('C:\Windows\System\msconfig.exe'), nil, nil, SW_NORMAL);
if errorcode <= 32 then
ShowMessage(SysErrorMessage(errorcode));
end;

Has anyone seen this and figured out how to run the msconfig.exe from the sys32 .

© Stack Overflow or respective owner

Related posts about delphi

Related posts about winapi