Active Directory/Connect: Difference between revisions

Content added Content deleted
(C# solution)
Line 334: Line 334:
=={{header|Run BASIC}}==
=={{header|Run BASIC}}==
<lang runbasic>print shell$("dir") ' shell out to the os and print it</lang>
<lang runbasic>print shell$("dir") ' shell out to the os and print it</lang>

=={{header|smart BASIC}}==
-- [http://rosettacode.org/wiki/User:Sarossell Scott A. Rossell, 12-31-16]

smart BASIC uses three separate commands to list the current directory, folder and files respectively.
<lang qbasic>PRINT "Current directory: ";CURRENT_DIR$()
PRINT
PRINT "Folders:"
PRINT
DIR "/" LIST DIRS a$,c
FOR n = 0 TO c-1
PRINT ,a$(n)
NEXT n
PRINT
PRINT "Files:"
PRINT
DIR "/" LIST FILES a$,c
FOR n = 0 TO c-1
PRINT ,a$(n)
NEXT n</lang>


=={{header|Tcl}}==
=={{header|Tcl}}==