home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 9
/
amigaformatcd09.iso
/
coverdisks
/
subsdisk
/
subs.dms
/
subs.adf
/
dofile.LZX
/
dofile
/
extras
/
getdtyp.rexx
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
OS/2 REXX Batch file
|
1996-09-29
|
350 b
|
18 lines
/*
** $VER: getdtyp.rexx 1.0 (2.1.96) Rolf Rotvel
**
** Usage: rx getdtyp.rexx <file>
*/
call addlib('rexxsupport.library', 0, -30, 0)
call addlib('datatypes.library', 0, -30)
parse arg file
if ~exists(file) then exit 10
say file||' -> '||filetype(file)
exit
FILETYPE: procedure
parse arg file
return strip(translate(examinedt(file,,), '', '0'x))