Jump to content

Active Directory/Connect: Difference between revisions

(C# solution)
Line 334:
=={{header|Run BASIC}}==
<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}}==
306

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.