admin - Tech Story - Page 1083 of 1111

Author: admin

Retrieve a shortcut’s link information

Retrieve a shortcut’s link information from delphi uses ShlObj, ComObj, ActiveX, CommCtrl; type PShellLinkInfoStruct = ^TShellLinkInfoStruct; TShellLinkInfoStruct = record FullPathAndNameOfLinkFile: array of Char; FullPathAndNameOfFileToExecute: array of Char; ParamStringsOfFileToExecute: array …

Rename a directory

Rename a directory from delphi uses ShellApi; procedure RenameDir(DirFrom, DirTo: string); var shellinfo: TSHFileOpStruct; begin with shellinfo do begin Wnd := 0; wFunc := FO_RENAME; pFrom := PChar(DirFrom); pTo …