procedure TForm1.Button1Click(Sender: TObject); begin with TINIFile.Create('C:\Data\desktop.ini') do try WriteString('.ShellClassInfo', 'IconFile', 'C:\Data\Icon\Apple Logo.ico'); WriteString('.ShellClassInfo', 'IconIndex', '0'); WriteString('.ShellClassInfo', 'InfoTip', 'Tulis deskripsi di sini'); UpdateFile; finally Free; end; SetFileAttributes(PChar('C:\Data'), FILE_ATTRIBUTE_SYSTEM); end;
0 komentar:
Posting Komentar