currently have a batch file to delete a printer on login. This refers to the 'Microsoft Document Image Writer'. The only problem I have is if the printer has already been moved the batch file complains with an error that the printer cannot be found.
Is there a command or something can add so that it can check and ignore if the printer has already been removed, or at least not show any errors to the user.
Here is the batch file contents;
rundll32 printui.dll,PrintUIEntry /dl /n "Microsoft Document Image Writer"
Thanks,
andy
Is there a command or something can add so that it can check and ignore if the printer has already been removed, or at least not show any errors to the user.
Here is the batch file contents;
rundll32 printui.dll,PrintUIEntry /dl /n "Microsoft Document Image Writer"
Thanks,
andy