f$ = dir("c:\")
while f$ <> ""
print f$
f$ = dir()
end while
mostrará algo similar a esto:
$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