Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for login_set_default_printer.bat

(view source code of login_set_default_printer.bat as plain text)

  1. WMIC Path Win32_Printer Where Name='HP LaserJet 4' Call SetDefaultPrinter
  2. IF ERRORLEVEL 1 (
  3. 	ECHO Failed to make 'HP LaserJet 4' the default printer
  4. )

page last modified: 2022-10-20