Código
* IsNTFS()
* Retorna 'True' se a partição é NTFS
*
* Autor: Jociel Eloy de Almeida
* Data: 07/AGO/2006
*}
FUNCTION IsNTFS(sFileName: String): Boolean;
var
oFso, oDrv: OleVariant;
begin
Result := False;
oFso := CreateOleObject('Scripting.FileSystemObject');
oDrv := oFso.GetDrive(oFso.GetDriveName(sFileName));
Result := oDrv.FileSystem = 'NTFS'
end;
Planeta Delphi - www.planetadelphi.com.br - Todos os direitos reservados | Copyright 2001-2009