User Tools

Site Tools


pt:dir

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pt:dir [2016/01/01 22:47]
pt:dir [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Dir =====
  
 +==== Formato ====
 +**dir** ( )\\
 +**dir** ( //pasta// )
 +
 +==== Descrição ====
 +Abre uma //pasta// e lista os ficheros e pastas (diretórios) que ai se encontram.
 +
 +==== Exemplo ====
 +<code>
 +f$ = dir("c:\")
 +while f$ <> ""
 +   print f$
 +   f$ = dir()
 +end while
 +</code>
 +mostrará algo como
 +<code>
 +$Recycle.Bin
 +autoexec.bat
 +Backup
 +Boot
 +bootmgr
 +Documents and Settings
 +IO.SYS
 +MSDOS.SYS
 +MSOCache
 +pagefile.sys
 +Program Files
 +ProgramData
 +System Volume Information
 +temp
 +Users
 +Windows
 +</code>
 +
 +==== Introduzido ==== 
 +0.9.6.55