ezab066@CHPC.BRC.UTEXAS.EDU.UUCP (02/15/87)
Does anyone know if there is a way to distinguish between 1) a "regular" VMS file that has type DIR, and 2) a DIR file which corresponds to a subdirectory ? In all SET DEFAULT DCL procedures ( including my own ) I've seen, the search of subdirectories is done over files with a file type DIR. My own SET DEFAULT procedure can search directories using wild cards, but it can be fooled by regular files whose name fit the wild card spec but are not really subdirectories. Apparently, even the VMS command is fooled by users' setting default to a non-subdirectory type DIR file. For eample, you have a regular text file called, for instance, ABAQUS_PLOT1.DIR, you can type SET DEFAULT ABAQUS_PLOT1. VMS does not give you any error message. You can show default, and there is still no problem. But, as you try to do a DIR, you'll get the following error message : %DIRECT-E-OPENIN, error opening TEMP:[EZAB066.ABAQUS_PLOT1.DIR]*.*;* as input -RMS-E-DNF, directory not found -SYSTEM-W-BADIRECTORY, bad directory file format Does anybody know of someway perhaps using lexical functions to find out if a DIR-type file is indeed a subdirectory file ? ------