Hi all,

I use the following "function" to set my default Printers.
Code:

Function PrinterDef($Printer)
If SetDefaultPrinter ("$Printer") = 0
? " Drucker $Printer als Standarddrucker ausgewählt..."
Else
Color $BrightColor
? " Drucker $Printer konnte nicht als Standarddrucker ausgewählt werden (@ERROR)"
Color $RegColor
Beep
EndIf
Exit @ERROR
EndFunction



Everyrthing seems to work fine so far. But some pieces of software can't find the default printer I set in this manner, some others do.
If I use a piece of visual basic script (prnmngr.vbs) everything works fine. The problem is, that the prnmngr.vbs only works on xp and above.

Is there anyone who experienced this problem before?


Thanks in advance


Sascha