批处理自动安装打印机_第1页
批处理自动安装打印机_第2页
批处理自动安装打印机_第3页
批处理自动安装打印机_第4页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、批处理自动安装打印机echo offtitle 广州网络打印机自动安装程序         Powered By XXX     Telphone: XXXmode con cols=100 lines=20color F0Echo 正在帮你设置打印机,请稍候net use 192.168.70.12 /deletenet

2、60;use 192.168.70.12 /user:user user if exist "%windir%/System32/en-US/user32.dll.mui" (goto 12) else (goto 11):11regedit /s PrintXp.reg   net stop spoolernet start spoolerrundll32 prin

3、tui.dll,PrintUIEntry /if /b "FX DocuCentre 659 CP" /r "IP_192.168.70.20" /m "FX DocuCentre 659 CP" /z /f "192.168.70.12software驱动程序659FXLOCJI.inf" /qrundll32 printui.dll,

4、PrintUIEntry /y /n "FX DocuCentre 659 CP" /qgoto 13:12regedit /s PrintVista.regnet stop spoolernet start spoolerrundll32 printui.dll,PrintUIEntry /if /b "FX DocuCentre 659 CP"

5、 /r "192.168.70.20" /m "FX DocuCentre 659 CP" /z /f "192.168.70.12software驱动程序fujiPrinterFXLOCJI.inf"rundll32 printui.dll,PrintUIEntry /y /n "FX DocuCentre 659 CP" goto&#

6、160;13:13echo.echo 打印机安装完成,请测试是否安装成功!echo.echo 如有问题,请手动连接打印机,具体操作请查看邮件中打印说明文档,谢谢!echo.pauseecho.exit上次忘了提供Printvista.reg和PrintXP.reg的文件,现在补上:Printvista.reg ,将下面的文件复制并保存为reg文件Windows Registry Editor Version 5.00HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPrintMonitor

7、sStandard TCP/IP PortPorts"StatusUpdateInterval"=dword:0000000a"StatusUpdateEnabled"=dword:00000001"LprAckTimeout"=dword:000000b4"Protocol"=dword:00000001"Version"=dword:00000002"HostName"="192.168.70.40""IPAddress&

8、quot;="""HWAddress"="""PortNumber"=dword:0000238c"SNMP Community"="public""SNMP Enabled"=dword:00000000"SNMP Index"=dword:00000001"PortMonMibPortIndex"=dword:00000000PrintXP.reg 保存为REG文件Windows&#

9、160;Registry Editor Version 5.00HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlPrintMonitorsStandard TCP/IP PortPorts"StatusUpdateInterval"=dword:0000000a"StatusUpdateEnabled"=dword:00000001"Protocol"=dword:00000001"Version"=dword:000

10、00001"HostName"="""IPAddress"="192.168.70.40""HWAddress"="""PortNumber"=dword:0000238c"SNMP Community"="public""SNMP Enabled"=dword:00000000"SNMP Index"=dword:00000000另外,在DOS里

11、面有个命令reg add,也是增加注册表文件,大家可以在命令行模式下输入reg /?来获取更多的信息。echo offclsecho Trying to connect  HP 2200 print.rem 判断网络打印机IP是否连线:startecho off &&ping -n 1 192.168.0.101 |find "timed out" >nul 2>nul && echo Failed to connect ,continue install &&  goto

12、endecho Ready to install && goto goon:goongoto end:endrem 在注册表中导入网络打印机的IPregedit /s 11.regrem 重启打印机服务sc stop spooler && sc start spooler rem 判断打印机服务是否已经启动,如果已启动就执行安装,这一段调试有些问题:start2echo off &&sc query spooler |find "RUNNING" >nul IF NOT ERRORLEVEL 1 (echo It's OK)else(goto start2)echo Driver is being installed ,later this window will automatically closerem 安装打印机rundll32 printui.dll,PrintUIEntry /dl /n "HP LaserJet 2200 Series PCL 32" /qrun

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论