Actually, on 2k and XP it's COM[0-9] and LPT[0-9]
At 07:36 PM 2/22/2002, you wrote:
On Friday, February 22, 2002, at 05:29 PM, Kimbro Staken wrote:Well that is interesting, Windows won't let you create a directory named com1. Try it, I had no idea that was the case.
Yup COM1, COM2, COM3, COM4, LPT1, LPT2, even CON. They're all reserved filenames from the DOS days. I mean, how else are you going to print something unless you type:
copy MYFILE.TXT LPT1
Seems we need to handle the error case where the directory can't be created, a little more cleanly.
I'll try to add some error code since I'm working in that part of the system as we speak.
-- Tom Bradford - http://www.tbradford.org Architect - XQRL (XQuery Engine) - http://www.xqrl.com Apache Xindice (Native XML Database) - http://xml.apache.org Project Labrador (Web Services Framework) - http://notdotnet.org
