
@echo The bat is add printer to your PC
@echo off
cscript //h:cscript //s
::用于将脚本宿主设定为cscript.exe,是这些脚本的运行环境,

@echo off
ntfs is an acronym for new technology file system. ntfs comes with windows nt and is much more up-to-date, stable and reliable than fat or fat 32. this file system was designed for use specifically with windows os. it supports long file names, huge disk partitions and files, full security access control, the ability to recover files/directories and its structure in case of a hardware failure, etc. ntfs file system is available in windows xp, windows vista, windows 7, windows 8, windows 8.1, windows server 2003, windows server 2008 and windows server 2012.。 3.接着调出win7命令提示符窗口,然后在命令提示符窗口上输入cd c:/windows/system32/dllcache命令,再输入copy iertutil.dll c:/windows/system。最低系统要求:windows 10(32/64)、windows 8 (32/64)、windows 7(32/64)、windows 7(32/64):1 ghz处理器、1gb ram(32位)或2gb ram(64 位)、400mb可用硬盘空间、cd/dvd-rom或互联网连接、usb 或网络端口,windows vista(32位):1ghz 32位 (x86)处理器、1gb ram(32位)、400mb可用硬盘空间、cd/dvd-rom或互联网连接、usb或网络端。
:: 批处理引用的是windows7中的打印机命令行工具三星m267x 287x驱动,他们的目录是C:WindowsSystem32Printing_Admin_Scriptszh-CN(英文系统可能在en-us中)prnmngr.vbs 用于安装、列出与移除打印机,prncnfg.vbs用于列出与管理打印机配置设置信息,prnqctl.vbs 用于管理打印机队列
@echo 添加打印端口**********************************************************

@echo off
prnport -a -r ip_192.168.0.219 -h 192.168.0.219 -o raw
:: -a -r ip_192.168.0.219指定打印机连接的端口
:: -h 192.168.0.219 -o raw指定要分配给端口的ip地址

@echo 安装Samsung M267x 287x Series驱动*************************************** @echo off
rundll32 printui.dll,PrintUIEntry /ia /h x86 /m "Samsung M267x 287x Series" /r \\192.168.0.15\printer\Printer\SPL_PCL\ssa6m.inf /w /q && @echo 驱动成功安装
::打印机驱动程序名称需要在打印机驱动安装包中的INF文件中查找,如果名称不匹配三星m267x 287x驱动,驱动将无法安装成功。将驱动程序放在本地硬盘指定位置。
@echo 安装Samsung M267x 287x Series打印机************************************* @echo off

(prnmngr -a -p "Samsung M267x 287x Series" -m "Samsung M267x 287x Series" -r ip_192.168.0.219) && (prncnfg -t -p "Samsung M267x 287x Series")
::指定要创建的打印机名
@echo Set this printer as default......
rundll32 printui.dll,PrintUIEntry /y /n "Samsung M267x 287x Series"
::将Samsung M267x 287x Series设为默认打印机
pause
本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/sanxing/article-107540-1.html
成功了
都是印发股票的人发大财了