mcdonald@uxe.cso.uiuc.edu (12/31/87)
com1 and com2 are reserved filenames in MS-DOS, even with extensions (com1.c). You can't use them.
ninja@bradley.UUCP (01/03/88)
> Got into trouble with microsoft c 4.0 with the file name "com1.c". > Names of com1 & com2 return the regular file status from the stat function > even when files of that name are not on the disk or diskette. So com1 & com2 > appear to be reserved words. Any one have an elegant (or not so) solution > to this problem. If this is an old problem please forgive me as i am a > novice. I think the problem here is that you'd like to recover data that you placed in a file called "com1".whatever. Although I haven't run into this problem before, we've had problems with people saving things with editors that don't check for legal filenames. The solution is to : 1) Make a backup of your disk (copy *.* should snag even files with inappropriate file names) 2) Run Norton's (or someone elses disk editor that will let you edit the dos \ directory tracks) disk editor on the backup disk 3) Edit the DOS directory track and change 'com1' to something legal, like 'csm1' 4) Your data will be back in csm1.whatever Hope this is what you were after. Frank McGee Bradley University Microcomputer Support Specialist Peoria, Ill. 61625