用批处理添加打印机驱动程序

时间:2021-06-23 07:10:14

       以内容为工作经常添加的Epson LQ-300K、Epson TM-U210D、Epson TM-U220打印机的驱动程序的批处理命令。可以直接把下列内容复制到文本文件里并保存为“.bat”文件,然后双击执行即可。

Echo ----------------------------------------------
Echo 安装并设置Epson LQ-300K打印机为默认打印机
Echo ----------------------------------------------
Echo 运行 inf 安装:
rundll32 printui.dll,PrintUIEntry /if /b "LQ-300K" /f %windir%\inf\ntprint.inf /r "lpt1:" /m "EPSON LQ-300K"
Echo 将打印机设为默认打印机:
rundll32 printui.dll,PrintUIEntry /y /n "LQ-300K"
Echo ----------------------------------------------
Echo Epson LQ-300K打印机安装成功
Echo ----------------------------------------------

Pause
Echo ----------------------------------------------
Echo 安装Epson TM-U210D打印机驱动
Echo ----------------------------------------------
TM210D.exe
rundll32 printui.dll,PrintUIEntry /if /b "Epson TM-U210D" /f C:\Tmdrve\win2000\OEMSETUP.inf /r "lpt1:" /m "EPSON TM-U210D"
Echo ----------------------------------------------
Echo Epson TM-U210D打印机安装成功
Echo ----------------------------------------------

Pause
Echo ----------------------------------------------
Echo 安装Epson 220打印机驱动
Echo ----------------------------------------------
epson220.exe
Echo ----------------------------------------------
Echo Epson 220打印机安装成功
Echo ----------------------------------------------