>What if my printer is not LPT1 and its a network printer, what would be the best way to send a file to the default printer?
If you check the FAQ, I've posted an entry on using the Win32 API to copy a file to thew printer, bypassing the printer driver entirely, using the CopyFile() API call. This can copy to a port, a virtual device like PRN:, a UNC (like a network printer) or to another file.