This shows you the differences between two versions of the page.
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 ==== | ||
+ | < | ||
+ | f$ = dir(" | ||
+ | while f$ <> "" | ||
+ | print f$ | ||
+ | f$ = dir() | ||
+ | end while | ||
+ | </ | ||
+ | mostrará algo como | ||
+ | < | ||
+ | $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 | ||
+ | </ | ||
+ | |||
+ | ==== Introduzido ==== | ||
+ | 0.9.6.55 |