in reply to get NIC slot

For Linux, lspci tells you what is in each slot. The manual for that program (man lspci) discuses /proc/pci that actually holds the info. The library it uses is supposedly "cross platform".

I don't know if there is a Cygwin version.

HTH, --traveler