- Консоль Управление печатью (Print Management)
- Printing from Windows 7 command line
- 5 Answers 5
- Properly print utf8 characters in windows console
- 7 Answers 7
- Printing PDFs from Windows Command Line
- 12 Answers 12
- Заметки сисадмина о интересных вещах из мира IT, инструкции и рецензии. Настраиваем Компьютеры/Сервера/1С/SIP-телефонию в Москве
- Как открыть управление печатью в Windows
- Открыть управление печатью через “Выполнить”
- Открыть управление печатью в “Панели управления”.
- Аналог управлению печатью в домашних версиях Windows
Консоль Управление печатью (Print Management)
Консоль Управление печатью (Print Management) – основной инструмент для работы с принтерами и серверами печати. После установки роли Службы печати (Print Services) консоль Управление печатью (Print Management) доступна в меню Администрирование (Administrative Tools). Вы также можете добавить ее как оснастку в любую пользовательскую консоль.
С помощью консоли Управление печатью (Print Management), можно устанавливать, просматривать и управлять всеми принтерами и серверами печати организации. Кроме того, в ней отображается состояние принтеров и серверов печати. Если у принтера есть веб-интерфейс управления, в консоли Управление печатью (Print Management) указана дополнительная информация о печати, включая информацию о количестве тонера и бумаги.
По умолчанию консоль Управление печатью (Print Management) настроена на управление локальным сервером печати, но вы можете управлять и другими серверами печати организации, добавив их в консоль. Эти серверы печати должны работать под управлением Windows 2000 или более поздней версии. Кроме того, чтобы управлять удаленным сервером печати, вы должны быть членом локальной группы Администраторы (Administrators) этого сервера или членом группы администраторов домена, членом которого является сервер.
Развернув узел Принтеры (Printers) для данного сервера печати, на главной панели вы увидите список очередей печати с именами принтеров, состоянием очереди, количеством заданий в очереди и именем сервера. Если щелкнуть правой кнопкой узел Принтеры (Printers) и выбрать команду Показать расширенное представление (Show Extended View), вы перейдете в расширенное представление, содержащее информацию о состоянии задания, его владельце, количестве страниц, размере задания, времени постановки в очередь, номере порта и приоритете задания.
Если у принтера есть веб-страница, в расширенном представлении отображается вкладка Веб-страница принтера (Printer Web Page), позволяющая получить непосредственный доступ к странице. На веб-странице вы найдете сведения о состоянии принтера, его свойствах и конфигурации. Иногда на веб-странице можно также выполнять удаленное администрирование.
Чтобы добавить сервер печати в консоль Управление печатью (Print Management), выполните следующее действие:
- В консоли Управление печатью (Print Management) щелкните правой кнопкой узел Серверы печати (Print Servers) и выберите команду Добавление и удаление серверов (Add/Remove Servers).
- В диалоговом окне Добавление и удаление серверов (Add/Remove Servers), показанном ниже, показан список добавленных ранее серверов печати.
- Выполните одно из следующих действий, а затем щелкните Добавить к списку (Add То List):
- Введите имена добавляемых серверов печати в поле Добавить серверы (Add Servers). Для разделения имен используются запятые.
- Щелкните Обзор (Browse), чтобы открыть диалоговое окно Выберите сервер печати (Select Print Server). Выделите нужный сервер и щелкните Выбор сервера (Select Server).
- При необходимости повторите предыдущий шаг, а затем щелкните ОК. Чтобы удалить серверы печати из консоли Управление печатью (Print Management), выполните следующие действия:
- В консоли Управление печатью (Print Management) щелкните правой кнопкой узел Серверы печати (Print Servers) и выберите команду Добавление и удаление серверов (Add/Remove Servers).
- В диалоговом окне Добавление и удаление серверов (Add/Remove Servers) отображен список серверов печати. Выберите один или несколько серверов и щелкните кнопку Удалить (Remove).
Printing from Windows 7 command line
I’m looking to automate some printing in Windows 7. Ideally from command line. Just as if I would’ve right-clicked and selected «Print».
Tried the command:
That printer is supposed to created PDF files (like the XPS printer) but haven’t managed to get anything show up in the printer queue. Ideas?
5 Answers 5
The print command uses the following synatx for the /d: switch:
Specifies the printer on which you want to print the job. You can specify a local printer by specifying the port on your computer to which the printer is connected. Valid values for parallel ports are LPT1, LPT2, and LPT3. Valid values for serial ports are COM1, COM2, COM3, and COM4. You can also specify a network printer by its queue name (\ServerName\ShareName). If you do not specify a printer, the print job is sent to LPT1.
This means you can’t use «CutePDF Writer» as an argument.
There are two ways that should work:
Assign a COM port to your printer.
- Open Start → Control Panel → Devices and Printers.
- Right-click the CutePDF Writer and select Printer Properties.
- In the Ports tab, assign an unused port from COM1: to COM4: to your printer.
If you chose, e.g., COM3 , print using the following command:
Share the printer.
- Open Start → Control Panel → Devices and Printers.
- Right-click the CutePDF Writer and select Printer Properties.
- In the Sharing tab, decide to share the printer and assign a share name to it.
Properly print utf8 characters in windows console
This is the way I try to do it:
And the effect is that only us ascii chars are displayed. No errors are shown. The source file is encoded in utf8.
So, what I’m doing wrong here ?
- this also doesn’t work. Effect is just the same. My font is of course Lucida Console.
ok, something begins to work, but the output is: ańbcdefghijklmno÷pqrs▀tuŘvwxyz .
7 Answers 7
By default the wide print functions on Windows do not handle characters outside the ascii range.
There are a few ways to get Unicode data to the Windows console.
use the console API directly, WriteConsoleW. You’ll have to ensure you’re actually writing to a console and use other means when the output is to something else.
set the mode of the standard output file descriptors to one of the ‘Unicode’ modes, _O_U16TEXT or _O_U8TEXT. This causes the wide character output functions to correctly output Unicode data to the Windows console. If they’re used on file descriptors that don’t represent a console then they cause the output stream of bytes to be UTF-16 and UTF-8 respectively. N.B. after setting these modes the non-wide character functions on the corresponding stream are unusable and result in a crash. You must use only the wide character functions.
UTF-8 text can be printed directly to the console by setting the console output codepage to CP_UTF8, if you use the right functions. Most of the higher level functions such as basic_ostream ::operator don’t work this way, but you can either use lower level functions or implement your own ostream that works around the problem the standard functions have.
The problem with the third method is this:
Unlike most operating systems, the console on Windows is not simply another file that accepts a stream of bytes. It’s a special device created and owned by the program and accessed via its own unique WIN32 API. The issue is that when the console is written to, the API sees exactly the extent of the data passed in that use of its API, and the conversion from narrow characters to wide characters occurs without considering that the data may be incomplete. When a multibyte character is passed using more than one call to the console API, each separately passed piece is seen as an illegal encoding, and is treated as such.
It ought to be easy enough to work around this, but the CRT team at Microsoft views it as not their problem whereas whatever team works on the console probably doesn’t care.
Printing PDFs from Windows Command Line
I’m trying to print all pdfs in current dir. When I call this bash script in cmd ( singlepdf.sh ): ‘»C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe»‘ /t Gemeinde_348_BioID_842_alt.pdf everything’s working fine.
When calling multiplepdfs.sh with this content:
The echo shows that files are addressed correctly in the loop — but then I get the error «C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe»: No such file or directory
Can someone help out with this issue?
Edit: BTW, I have msys mingw installed
12 Answers 12
I know this is and old question, but i was faced with the same problem recently and none of the answers worked for me:
- Couldn’t find an old Foxit Reader version
- As @pilkch said 2Printer adds a report page
- Adobe Reader opens a gui
After searching a little more i found this: http://www.columbia.edu/
It’s a simple exe that you call with the filename and it prints to the default printer (or one that you specify). From the site:
PDFtoPrinter is a program for printing PDF files from the Windows command line. The program is designed generally for the Windows command line and also for use with the vDos DOS emulator.
To print a PDF file to the default Windows printer, use this command:
To print to a specific printer, add the name of the printer in quotation marks:
If you want to print to a network printer, use the name that appears in Windows print dialogs, like this (and be careful to note the two backslashes at the start of the name and the single backslash after the servername):
Заметки сисадмина о интересных вещах из мира IT, инструкции и рецензии. Настраиваем Компьютеры/Сервера/1С/SIP-телефонию в Москве
Как открыть управление печатью в Windows
Управление печатью – это оснастка консоли управления, которая позволяет устанавливать, просматривать и управлять принтерами. В сегодняшней статье рассмотрим как открыть “Управление печатью” в Windows 7, 8 и 10.
Открыть управление печатью через “Выполнить”
Данный способ работает во всех изданиях Windows, кроме домашней версии. Если у вас домашняя версия Windows – переходите к последнему способу.
В строке поиска или в меню “Выполнить” (выполнить вызывается клавишами Win+R) введите команду printmanagement.msc и нажмите клавишу Enter.
Перед вами сразу откроется “Управление печатью”. Зайдите в “Сервер печати” и вы сможете: добавить или удалить принтер; добавить или удалить драйвер принтера; просмотреть очередь печати; распечатать тестовую страницу; настроить порт принтера и т.д.
Открыть управление печатью в “Панели управления”.
Данный способ работает во всех изданиях Windows, кроме домашней версии. Если у вас домашняя версия Windows – переходите к последнему способу.
Откройте “Панель управления”: один из способов – в строке поиска введите control и нажмите клавишу Enter.
Измените “Просмотр” на “Крупные значки” и откройте “Администрирование”.
Зайдите в “Управление печатью”.
Аналог управлению печатью в домашних версиях Windows
“Управление печатью” отсутствует в домашних версиях Windows, вместо него вы можете управлять вашими принтерами из “Устройства и принтеры”.
Откройте “Панель управления”: один из способов – в строке поиска введите control и нажмите клавишу Enter.
Измените “Просмотр” на “Крупные значки” и откройте “Устройства и принтеры”.
В “Устройства и принтеры” вы можете видеть подключенные принтеры, сканеры, Bluetooth и другие внешние устройства. Нажав на нужный принтер правой клавишей мыши вы сможете: задать размер бумаги для печати по умолчанию; управлять свойствами принтера; увидеть сколько документов находится в очереди печати и т.д. Зайдя в “Свойства сервера печати” вы сможете: удалить или добавить драйвера принтера; настроить порты; и т.д.