home *** CD-ROM | disk | FTP | other *** search
- script getCDROMPORT
- set x type str ""
- :again
- getstring x length 3 hexnumonly
- local y type long ${x}h
- if isequal $y 300h return $x
- if isequal $y 310h return $x
- if isequal $y 320h return $x
- if isequal $y 330h return $x
- if isequal $y 340h return $x
-
- flushkeys
- goto again
-
- script getString
- set x type str ""
- getstring x length 40
- trim x
- return $x
- script getDriveLetter
- set x type str ""
- local y type str ""
- :again
- getstring x length 1 wordonly
- flushkeys
- set y "${x}" - "[a-z]"
- if ! $_strop goto again
- set x "$x" + ":"
- return $x
- script getPathExisting
- set x type str ""
- :again
- getstring x length 20 wordonly
- flushkeys
- if ! isdir $x goto again
- return $x
- script getFilename
- set x type str ""
- getstring x length 13 wordonly
- return $x
- script getFilenameExisting
- set x type str ""
- :again
- getstring x length 40 wordonly
- flushkeys
- if not isfile $x goto again
- return $x
-
-