Recent Posts

Selamat datang di Coding Delphi Land Weblog kumpulan source code pemogram delphi

(Bukan maksud untuk menggurui tetapi marilah kita berbagi ilmu tuk perkembangan kemajuan teknologi kita

Rabu, 18 November 2009

Explore Folder

function ExploreFolder(const Folder: string): Boolean;
begin
if SysUtils.FileGetAttr(Folder) and faDirectory = faDirectory then
// Folder is valid directory: try to explore it
Result := ShellAPI.ShellExecute(
0, 'explore', PChar(Folder), nil, nil, Windows.SW_SHOWNORMAL
) > 32
else
// Folder is not a directory: error
Result := False;
end;

0 komentar:

Posting Komentar