langet@ecn-pc.UUCP (Timothy Lange) (11/12/85)
I finally found out how to read DOS directories as files. First, I tried opening the directory with an extended File Control Block and set the attribute byte to directory. This worked, the file got opened but when I tried to read anything, I got the error for no data to be read. Well, DOS is tricky, according to ihnp4!stolaf!krausej (Krause, James J.) who pointed me to an article in PC Tech Journal, DOS sets the file size of directories to 0! So, after opening the directory I reset the file size and hurray, I can read the directory entries. I am writing a program that will sort the file names in a directory alphabetically, if anyone wants it, please just send me mail to the the assembler source. I should have it done in about a week. Now my next question, anybody have/know of a program that will be memory resident and will save the current screen to disk so that the saved screen image can be displayed at a later time? I would like to save screen graphs done by a package and display them one after the other without using the graphics package, as for a presentation. -- Tim Lange Engineering Business Offices 317-494-5338 Rm 120 Engineering Administration Bldg. Purdue University West Lafayette, IN 47907 {decvax|harpo|ihnp4|inuxc|seismo|ucbvax}!pur-ee!langet