logo

.
Tuesday 16th of March 2010    

Ankety

Jaké barvy editoru kódu používáte?
 

Přihlášení




Složka - Kopie, přesun, smazání Tisk Email
Hodnocení uživatelů: / 0
NejhoršíNejlepší 
Napsal uživatel Administrator   
Úterý, 05 Květen 2009 09:19
uses
  
ShellApi;

function CopyDir(const fromDir, toDir: string): Boolean;
var
  
fos: TSHFileOpStruct;
begin
  
ZeroMemory(@fos, SizeOf(fos));
  with fos do
  begin
    
wFunc  := FO_COPY;
    fFlags := FOF_FILESONLY;
    pFrom  := PChar(fromDir + #0);
    pTo    := PChar(toDir)
  end;
  Result := (0 = ShFileOperation(fos));
end;


function MoveDir(const fromDir, toDir: string): Boolean;
var
  
fos: TSHFileOpStruct;
begin
  
ZeroMemory(@fos, SizeOf(fos));
  with fos do
  begin
    
wFunc  := FO_MOVE;
    fFlags := FOF_FILESONLY;
    pFrom  := PChar(fromDir + #0);
    pTo    := PChar(toDir)
  end;
  Result := (0 = ShFileOperation(fos));
end;

function DelDir(dir: string): Boolean;
var
  
fos: TSHFileOpStruct;
begin
  
ZeroMemory(@fos, SizeOf(fos));
  with fos do
  begin
    
wFunc  := FO_DELETE;
    fFlags := FOF_SILENT or FOF_NOCONFIRMATION;
    pFrom  := PChar(dir + #0);
  end;
  Result := (0 = ShFileOperation(fos));
end;

Zdroj: http://www.swissdelphicenter.ch/en/showcode.php?id=152
Aktualizováno Úterý, 05 Květen 2009 09:26
 

Přidejte svůj komentář

Vaše jméno:
Titulek:
Komentář:
bottom

top

kolik vás je ?

Právě připojeni - hostů: 2 

Provoz stránek

návštěv dnes: 39
návštěv včera: 42
návštěv za měsíc: 642
návštěv celkem: 7077

Translations


Vyberte si vzhled


bottom

Založeno na Joomla!. Designed by: Free Joomla 1.5 Template, dns. Valid XHTML and CSS.