|
Hi,
I want to make our login script more verbose with a welcome message for the user and some more error messaging. One part of the scipt is the adding of printers on laptops and workstations in case they don't have them installed allready. This is the thing I use for it:
IF KeyExist("HKEY_CURRENT_USER\Printers\Connections\,,finasserver,2100_DLS") ? "Printer 2100_DLS allready added" ELSE ADDPRINTERCONNECTION ("\\Finasserver\2100_DLS") ENDIF
How could I make this more verbose using the @SERROR function?
would it be something like this:
IF KeyExist("HKEY_CURRENT_USER\Printers\Connections\,,finasserver,2100_DLS") ? "Printer 2100_DLS allready added" ELSE IF ADDPRINTERCONNECTION ("\\Finasserver\2100_DLS")=0 ? "Printer succesfully added" ELSE 'unable to add printer ' + @ERROR + ' ' + @SERRROR ENDIF
regards,
jeroen
|