home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload
/
ShartewareOverload.cdr
/
database
/
trl14db.zip
/
TRLPRG.EXE
/
CURDIR.PRG
< prev
next >
Wrap
Text File
|
1990-10-22
|
648b
|
27 lines
***********
* CURDIR.PRG
* by Tom Rettig and Leonard Zerman
* Placed in the Public Domain by Tom Rettig Associates, 10/22/1990.
*
* SYNTAX: DO CURDIR WITH <drive letter>/<null>
* RETURN: <expC> current directory of specified drive,
* or of default drive if optional <drive letter> is ommited
***********
PARAMETERS par1
* Optional parameter
IF [] = par1
CALL Trexe WITH "CURDRIVE"
CALL Trpass WITH tr_retc
ELSE
CALL Trpass WITH par1
ENDIF
CALL Trexe WITH "CURDIR"
CALL Trexe WITH "TRRETCLEN"
IF fox
PRIVATE tr_temp
tr_temp = SUBSTR(tr_retc,1,tr_retn)
RETURN (tr_temp)
ENDIF
* eof curdir *