I have a project in Delphi 2010 that when I click on a button opens a directory, this is the code:
DirFolder := 'C:\teste';
ShellExecute(Handle, 'open', PChar(DirFolder), nil, nil, SW_SHOWNORMAL);
Open this:
I leave the question, is it possible when I close the project to also close this folder?