Home > OS >  To help write a script
To help write a script

Time:09-24

Use the following command:
Cscript C: \ Windows \ System32 \ PRNMNGR VBS - l & gt;> Print. TXT

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation from 1996 to 2001, all rights reserved.

The output of command:
Sent to the printer name OneNote 16

The printer name PDFCreator

The printer name Microsoft XPS Document Writer

Printer, Fax

The printer name doPDF v7

Printer name \ \ 8.8.8.8 \ technology group _ _ system color _A4

Printer name \ \ 8.8.8.8 \ technology _ _ system (black and white _A4

Printer name \ \ prnt1 \ technology _ _ system (black and white _A3

Printer name \ \ prnt1 \ technology group _ _ system color _A4

Printer name \ \ prnt1 \ technology _ _ system (black and white _A4

Printer name \ \ prnt1 \ technology _ _ system (black and white _A3

The enumeration of local printer and connection number 11

How I want the following content, thank you!
Printer name \ \ 8.8.8.8 \ technology group _ _ system color _A4
Printer name \ \ 8.8.8.8 \ technology _ _ system (black and white _A4
Printer name \ \ prnt1 \ technology _ _ system (black and white _A3
Printer name \ \ prnt1 \ technology group _ _ system color _A4
Printer name \ \ prnt1 \ technology _ _ system (black and white _A4
Printer name \ \ jt000prnt1 \ technology _ _ system (black and white _A3







CodePudding user response:

As long as there is \ \ printers? Just cut the string
  • Related