I am having an issue with my program it should start the msconfig program when the button is pressed but it doesn't start, however when I change the file name to Cleanmgr it starts up perfectly.
ShellExecute(handle, 'open', PChar('cleanmgr'), nil, nil, SW_normal);
ShellExecute(handle, 'open', PChar('msconfig'), nil, nil, SW_normal);
I assumed it was the link so I changed it so that it links directly to the file using a fully qualified path.
ShellExecute(handle, 'open', PChar('C:\Windows\System32\msconfig.exe'), nil, nil, SW_normal);
Still no luck, what am I doing wrong?