IF INLIST( JUSTSTEM(m.lcUpperJustFileName), "AUX", "COM1", "COM2", "COM3", "COM4", "CON", "LPT1", "PRN" ) * You can not create a filename that is the same as a reserved DOS device, even if you add an extension. RETURN .F.