home *** CD-ROM | disk | FTP | other *** search
-
- $compile EXE ' says to compile this to a .exe file
- $LIB ALL OFF ' no serial, print, or special graphic support
- $ERROR ALL OFF'no error checking
-
- $link "Exists.pbu" 'link in the previously created pbu
- PUBLIC MatchedFil$ 'not used in this demo, but is in the pbu
- DEFINT a-z
- CLS
- LINE INPUT "Which filename do you need to check ";filename$
- ' the next call is to the .pbu file, but no declare is
- ' needed except for your own reference.
- CALL FindVol(Filename$,FileErr%,CreateDate$,CreatTime$)
- SELECT CASE FileErr%
- CASE 0
- PRINT "I found ";UCASE$(filename$)
- PRINT "Created ";CreateDate$;
- PRINT " at ";CreatTime$
- CASE 2,18
- PRINT "No File Found."
- END SELECT
- END(FileErr%) 'pass errorlevel to a calling program if needed
-