从命令行获取默认打印机名称? [英] Get default printer name from command line?
本文介绍了从命令行获取默认打印机名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Microsoft Windows XP 附带了一个 VBS 脚本,用于从命令行管理本地和网络打印机:
Microsoft Windows XP comes with a VBS script to manage local and network printers from the command line:
从命令行获取默认打印机详细信息:
To Get the default printer details from command line:
cscript C:\windows\system32\prnmngr.vbs -g
从 Windows 命令行获取添加到系统的打印机列表:
To Get the list of printers added to the system from Windows command line:
cscript C:\windows\system32\prnmngr.vbs -l
是否有适用于 Windows 7 的等效命令?我只需要获取默认打印机详细信息并获取连接到系统的打印机列表.
Is there any equivalent commands for Windows 7? I just need to get the default printer details and get the list of printers attached to the system.
推荐答案
在 Windows 7 中,这些相同的脚本位于
In Windows 7 these same scripts are found in
C:\Windows\System32\Printing_Admin_Scripts\en-US
这篇关于从命令行获取默认打印机名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文