Welcome!

Looking at your code, there's no statement to actually map the printer. It looks like you grabbed the example that tried to illustrate the concept, but didn't actually map. Are you getting a proper message "Mapping printer xxxx" ? If so, the logic is working. You'll need to add the command to actually map the printer at that point.

You should read the post(s) that follow the one where you copied the code from - they actually contain the commands to map the printer (AddPrinterConnection) and are more complete, even though they use an INI file.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D