What\'s the API call to display an Explorer window with a specified file selected? Exactly as happens when you click the \"Find Target...\" button in the Properties dialog of a
This function opens explorer, and selects the specified file:
uses ShellAPI, ...;
procedure TForm1.ShowFile(const aFileName:String);
begin
ShellExecute(Handle, 'OPEN', PChar('explorer.exe'), PChar('/select, "' + aFileName + '"'), nil, SW_NORMAL)
end;
procedure TForm1.ShowFolder(const aPath:String);
begin
ShellExecute(Handle, 'OPEN', PChar('explorer.exe'), PChar('/root, "' + aPath + '"'), nil, SW_NORMAL)
end;
Or is this the "commandline" that you didn't want to use?