>is there any commands i can call to tell me which printer is the windows default printer and the port it is printing to?
You can use SET('PRINTER',2) to get the default Windows printer, or SET('PRINTER',3) to get the default VFP printer, and then spin through the the collection returned by the Wscript.Network COM Object's EnumPrinterConnections to determine the port assignment associated ih the Windows printer name.
Check the MS WSH site or the WSH FAQ site in my signature block for details.