Module
Contents
Index 🔎︎

# GetAttr Function

Faylete dana woy luulu su'ma woy furcho badannoha bitete diramme akata qolanno.

## Ganallo:

    GetAttr (Borro Naanni-fikiimate gede)

## Qolote guma:

Intijere

## Eishshuwa:

Borro: Xawe leellanno faylete badooshshe amaddanno naannifikiimate handaara. Hattono URL qaagiishsha horonsi'ra dandaatto.

Tini assishsha badantino faylera sona…...... tirte konni woroonni nno faylete sona badate kaa'litanno bitete diramme akata qoltanno:

## Error codes:

5 Horiweelo aante woshsho

53 Fayle diafantino

## Hornyo

Named constant | Value | Definition
ATTR_NORMAL | 0 | Normal files.
ATTR_READONLY | 1 | Read-only files.
ATTR_HIDDEN | 2 | Hidden file
ATTR_SYSTEM | 4 | System file
ATTR_VOLUME | 8 | Returns the name of the volume
ATTR_DIRECTORY | 16 | Returns the name of the directory only.
ATTR_ARCHIVE | 32 | File was changed since last backup (Archive bit).

Sonu... bayite bite qinaabbino gedeenni afa hasirittoro, konni woroonni noo xa'mote metede horonsi'ri:

## Lawishsha:

    Sub ExampleSetGetAttr
    GoTo ErrorHandler So'ro aana' So'rote amadaanchira gawalo tiri
     If Dir("C:\test",16)="" Then MkDir "C:\test"
     If Dir("C:\test\autoexec.sav")="" Then FileCopy "c:\autoexec.bat", "c:\test\autoexec.sav"
     SetAttr "c:\test\autoexec.sav" ,0
     FileCopy "c:\autoexec.bat", "c:\test\autoexec.sav"
     SetAttr "c:\test\autoexec.sav" ,1
     Print GetAttr( "c:\test\autoexec.sav" )
     End
    ErrorHandler:
     Print Error
     End
    End Sub