收藏 分享(赏)

自动安装打印机.doc

上传人:hskm5268 文档编号:7224088 上传时间:2019-05-10 格式:DOC 页数:1 大小:21.50KB
下载 相关 举报
自动安装打印机.doc_第1页
第1页 / 共1页
亲,该文档总共1页,全部预览完了,如果喜欢就下载吧!
资源描述

1、echo offclsecho Trying to connect HP 2200 printrem 判断网络打印机 IP 是否连线:startecho off &ping -n 1 192.168.0.101 |find “timed out“ nul 2nul & echo Failed to connect ,continue install & goto endecho Ready to install & goto goon:goongoto end:endrem 在注册表中导入网络打印机的 IPregedit /s 11.regrem 重启打印机服务sc stop spooler

2、& sc start spooler rem 判断打印机服务是否已经启动,如果已启动就执行安装,这一段调试有些问题:start2echo off &sc query spooler |find “RUNNING“ nul IF NOT ERRORLEVEL 1 (echo Its 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“ /qrundll32 printui.dll,PrintUIEntry /if /b “HP LaserJet 2200 Series PCL 32“ /f “%windir%infntprint.inf“ /r “IP_192.168.0.101“ /m “HP LaserJet 2200 Series PCL“ /u /z

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报