プリンタ振り分けバッチ
if %LogonServer% == \\%ComputerName% GOTO EXIT %LogonServer%\netlogon\con2prt.exe /f goto %ComputerName% :PC001 :PC002 :PC003 goto PR_0 :PR_0 rundll32 printui.dll,PrintUIEntry /in /n\\SV01\PR01 rundll32 printui.dll,PrintUIEntry /in /n\\SV01\PR02 rundll32 printui.dll,PrintUIEntry /in /n\\SV01\PR03 rundll32 printui.dll,PrintUIEntry /y /n\\SV01\PR02 goto EXIT :PR_2 rundll32 printui.dll,PrintUIEntry /in /n\\SV01\PR20 rundll32 printui.dll,PrintUIEntry /y /n\\SV01\PR20 goto EXIT