Get default printer name from command line?

前端 未结 7 1192
盖世英雄少女心
盖世英雄少女心 2020-12-31 08:02

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:

<
相关标签:
7条回答
  • 2020-12-31 08:30

    List of all printers names and shows default one (You can get more details read documentation)

    wmic printer get name,default
    

    If you want output to file use:

    wmic printer get name,default > D:\catalog\file.txt
    

    Availability

    The wmic command is an external command that is available in the below Microsoft operating systems as wmic.exe.

    Windows XP professional
    Windows 2003
    Windows Vista
    Windows 7
    Windows 8
    Windows 10
    
    0 讨论(0)
提交回复
热议问题