(view source code of filesys.cmd as plain text)
/* FileSys, Version 1.00 for OS/2 *//* Written by Rob van der Woude *//* http://www.robvanderwoude.com *//* Initialize RexxLib */call RxFuncAdd "RexxLibRegister", "RexxLib", "RexxLibRegister"
call RexxLibRegister/* Parameter check */parse upper arg drive dummy
if dummy <> "" then call Syntax
if drive = "" then do
drive = filespec( "D", directory( ) )
endelse do
if pos( "?", drive ) > 0 then call Syntax
if length( drive ) = 1 then drive = drive||":"
if length( drive ) > 2 then call Syntax
if right( drive, 1 ) <> ":" then call Syntax
if left( drive, 1 ) < "A" then call Syntax
if left( drive, 1 ) > "Z" then call Syntax
end/* Check if specified drive is ready */if dosdisk( "T", drive ) = -1 then do
saysay "Drive "||drive||" is not ready"
EXIT 1
end/* Now that that's done, let's get the file system */saysay "File system of drive "||drive||" is "||DOSFILESYS( drive )
/* End main program */EXIT 0
Syntax:
saysay "FileSys, Version 1.00 for OS/2"
say "Written by Rob van der Woude"
saysay "Usage: FILESYS [ drive ]"
saysay "If no drive is specified, current drive is assumed"
EXIT 2
returnpage last modified: 2025-10-11; loaded in 0.0127 seconds