Dir Function
Fayilete, furchu woy oofote aana baalanta fayillanna furchuwa woy badamino hasaanchu haruma fixoomanno furcho giddo su'ma qolanno.
Ganallo:
Dir [(Borro Naanni-fikiimate gede) [, Sona intijerete gede]]
Qolote guma:
Naanni-fikiima
Eishshuwa:
Borro: Hasaanchu haruma, furcho woy fayle badanno naanni-fikiimate handaara. Tini tidho badantannohu umi yannara Dir assishsha horonsi'rattowoteeti. hasirittoro, haruma URL egensiishsha giddo eessa dandaatto.
Sona: bitwise fayle sonna baddanno intijerete handaara. Dir assishshi badamino sona fixoontanno fayllanna furchuwa calla qolanno. Sonu hornyuwa ledatenni batinye sona xaadisa dandaatto:
0 : Rosantino faylla.
16 : Furchu su'ma calla qolanno.
Fayle woy furchu heerannota buuxate, woy furchu giddo baalanta fayllanna hanqafaano tirate konne sona horonsi'ri.
Fayle heedhannota buuxate, gumulo harumanna faylete su'ma eessi. Faylete woy furchu su'mi nookkiro, Dir assishshi zeero-seendille naanni-fikiima ("")qolanno.
To generate a list of all existing files in a specific directory, proceed as follows: The first time you call the Dir function, specify the complete search path for the files, for example, "D:\Files\*.ods". If the path is correct and the search finds at least one file, the Dir function returns the name of the first file that matches the search path. To return additional file names that match the path, call Dir again, but with no arguments.
To return directories only, use the attribute parameter. The same applies if you want to determine the name of a volume (for example, a hard drive partition).
Lawishsha:
Sub ExampleDir
' Baalanta fayllanna furchuwa leellishanno
Dim sPath As String
Dim sDir As String, sValue As String
sDir="Furchuwa:"
sPath = CurDir
sValue = Dir$(sPath + getPathSeparator + "*",16)
Do
If sValue <> "." And sValue <> ".." Then
If (GetAttr( sPath + getPathSeparator + sValue) And 16) >0 Then
' Furchuwa adhanno
sDir = sDir & chr(13) & sValue
End If
End If
sValue = Dir$
Loop Until sValue = ""
MsgBox sDir,0,sPath
End Sub