Printing path in windows

Windows CMD: PATH Variable – Add To PATH – Echo PATH

PATH is an environment variable that specifies a set of directories, separated with semicolons ( ; ), where executable programs are located.

In this note i am showing how to print the contents of Windows PATH environment variable from the Windows command prompt.

I am also showing how to add a directory to Windows PATH permanently or for the current session only.

Cool Tip: List environment variables in Windows! Read More →

Echo Windows PATH Variable

Print the contents of the Windows PATH variable from cmd :

The above commands return all directories in Windows PATH environment variable on a single line separated with semicolons ( ; ) that is not very readable.

To print each entry of Windows PATH variable on a new line, execute:

Cool Tip: Set environment variables in Windows! Read More →

Add To Windows PATH

Warning! This solution may be destructive as Windows truncates PATH to 1024 characters. Make a backup of PATH before any modifications.

Save the contents of the Windows PATH environment variable to C:\path-backup.txt file:

Set Windows PATH For The Current Session

Set Windows PATH variable for the current session:

Set Windows PATH Permanently

Run as Administrator: The setx command is only available starting from Windows 7 and requires elevated command prompt.

Permanently add a directory to the user PATH variable:

Permanently add a directory to the system PATH variable (for all users):

Info: To see the changes after running setx – open a new command prompt.

Printing path in windows

This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.

Answered by:

Question

Answers

I extracted aomwin110ea23us.exe file downloaded from Canon, however, there is no *.inf file included in this package. I also noticed that this is an add-on driver for this Canon printer which cannot be installed in Windows 7 directly. Therefore, you can try Windows Update and see if the driver can be downloaded. Also, you can download it HERE directly.

Once the printer driver is installed, you can install aomwin110ea23us.exe again for more printer functions.

By the way, it is always recommended contacting the hardware manufacturer directly for this kind of driver issues. J

Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise, regarding this product’s performance or reliability.

Hope this helps.

All replies

I extracted aomwin110ea23us.exe file downloaded from Canon, however, there is no *.inf file included in this package. I also noticed that this is an add-on driver for this Canon printer which cannot be installed in Windows 7 directly. Therefore, you can try Windows Update and see if the driver can be downloaded. Also, you can download it HERE directly.

Once the printer driver is installed, you can install aomwin110ea23us.exe again for more printer functions.

By the way, it is always recommended contacting the hardware manufacturer directly for this kind of driver issues. J

Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise, regarding this product’s performance or reliability.

Hope this helps.

I am also struggling with getting my new Windows 7 laptop print wirelessly to a Canon i560 which is connected via USB to an XP pc. The add-on driver that you point to in Windows Update is what I believe is called a cabinet file. I have no idea how to install that. Any suggestions? Thanks

I am trying to network a Canon i850 printer (not USB) connected to a XP computer on my network to a new Windows 7 computer. When I select the printer in Win 7, Windows cannot find a driver and for manual entry asks for the path to the driver «*.inf». I have downloaded the apparent required driver from Canon (aomwin110ea23us.exe) but when I run the executable file on my Win 7 computer it deposits the driver in an unknown location. Without the path the printer driver is not found by my Win 7 computer.

For Ron604 and Rumin,

I have a Canon i850 printer attached via USB to an XP computer on my home network. I recently added a Win7 computer and (tonight) successfully added the printer to Win7 and printed a few pages. I followed badaxle’s procedures exactly (they’re for XP to Vista, but they worked Win7 to XP for me). The link to these instructions is:

for a topic titled » Printer on network with XP and Vista computers «. Please note that I did *not* download anything to the new Win7 computer — it got the necessary drivers from the XP machine. Very simple once I got the right procedure — only took a minute to install and print a test page. Thanks go to badaxle.

I hope this is not too late to get a reply. I have the same issue. Just got a Dell OInspiron 7010 laptop running W7 (64). I have a Canon i560 connceted to a desktop running Win XP. I want to use the printer from my lapop over the network using the desktop as I had with my previous laptop. It goes over a network and prints via the desktop.

I assume a generic printer driver is included in the W7 package. However, it appears that the driver doesn’t load without the OS detecting a new device connected to the system. You’re correct in saying that the Cannon file is only an enhancement to the generic driver. So how do I get the driver loaded without connecting a printer? I looked in System32>drivers and System32>DriverStore but nothing jumps out as a printer driver. Can you identify the driver name and path and perhaps some tips as to how to get it loaded? I’ll run the Canon exe after I get it loaded.

Thanks in advance for the help

I found a USB cable and connected the printer directly to the laptop. As I anticipated the printer driver loaded automaticall as did the Canon enhancement from the WEB. This results in the printer appearing as a local printer that is offline when the cable is disconnected. The Canon functions are there for controlling the printer.

Читайте также:  Mac os сменить язык ввода

However I have a problem when I try to connect the laptop to the printer over my home network via my desktop. I do Control Panel>Devices and Printers>add a printer>add a network, wireless or bluetooth printer. This results in window that shows the local printer along with 4 printer it identifies over the network that are present on the desktop.identified as Printer on «desktop name«, Printer4 on «desktop name«, Printer8 on «desktop name» and Printer10 on «desktop name«. Printers 4, 8 & 10 relate to programs running on the desktop that have no relevence. The one called Printer on «desktop name» is identified as the Canon i560 but the process says it can’t find a driver since it only looks on the web and not the local machine. I can load the driver from the laptop if I knew its name and location.

So how do I find this driver on the laptop?

Общие сведения о печати Printing Overview

С Microsoft .NET Framework разработчики приложений, использующие Windows Presentation Foundation (WPF), имеют богатый новый набор API-интерфейсов для управления печатью и системой печати. With Microsoft .NET Framework, application developers using Windows Presentation Foundation (WPF) have a rich new set of printing and print system management APIs. В Windows Vista некоторые из этих усовершенствований системы печати также доступны разработчикам, создающим Windows Forms приложений и разработчиков, использующих неуправляемый код. With Windows Vista, some of these print system enhancements are also available to developers creating Windows Forms applications and developers using unmanaged code. Основой этой новой функциональности является новый формат XPS-файла и путь печати XPS. At the core of this new functionality is the new XML Paper Specification (XPS) file format and the XPS print path.

В этом разделе содержатся следующие подразделы. This topic contains the following sections.

О формате XPS About XPS

XPS — это формат электронного документа, формат файла очереди и язык описания страницы. XPS is an electronic document format, a spool file format and a page description language. Это формат открытого документа, который использует XML, соглашения об упаковке и другие отраслевые стандарты для создания кросс-платформенных документов. It is an open document format that uses XML, Open Packaging Conventions (OPC), and other industry standards to create cross-platform documents. XPS упрощает процесс создания, совместного использования, печати, просмотра и архивации цифровых документов. XPS simplifies the process by which digital documents are created, shared, printed, viewed, and archived. Дополнительные сведения о XPS см. в статье XPS-документы. For additional information on XPS, see XPS Documents.

Некоторые методы печати содержимого на основе XPS с помощью WPF демонстрируются при программной печати XPS-файлов. Several techniques for printing XPS-based content using WPF are demonstrated in Programmatically Print XPS Files. Ссылки на эти примеры могут оказаться полезными при просмотре содержимого этого раздела. You may find it useful to reference these samples during review of content contained in this topic. (Разработчикам неуправляемого кода следует ознакомиться с документацией по функции MXDC_ESCAPE. (Unmanaged code developers should see documentation for the MXDC_ESCAPE function. Windows Forms разработчики должны использовать API в System.Drawing.Printing пространстве имен, который не поддерживает полный путь печати XPS, но поддерживает гибридный путь печати из GDI в XPS. Windows Forms developers must use the API in the System.Drawing.Printing namespace which does not support the full XPS print path, but does support a hybrid GDI-to-XPS print path. См. раздел Архитектура способа печати ниже.) See Print Path Architecture below.)

Способ печати XPS XPS Print Path

Путь печати в формате XPS — это новая функция Windows, которая переопределяет способ обработки печати в приложениях Windows. The XML Paper Specification (XPS) print path is a new Windows feature that redefines how printing is handled in Windows applications. Так как XPS может заменить язык представления документов (например, RTF), формат диспетчера очереди печати (например, WMF) и язык описания страницы (например, PCL или PostScript); новый способ печати сохраняет формат XPS от публикации приложения до финальной обработки в драйвере или устройстве печати. Because XPS can replace a document presentation language (such as RTF), a print spooler format (such as WMF), and a page description language (such as PCL or Postscript); the new print path maintains the XPS format from application publication to the final processing in the print driver or device.

Путь печати XPS основан на модели драйвера принтера XPS (XPSDrv), предоставляющей несколько преимуществ для разработчиков, таких как «то, что вы видите, это то, что вы получаете: «(WYSIWYG), улучшенная поддержка цвета и значительно улучшена производительность печати». The XPS print path is built upon the XPS printer driver model (XPSDrv), which provides several benefits for developers such as «what you see is what you get» (WYSIWYG) printing, improved color support, and significantly improved print performance. (Дополнительные сведения о XPSDrv см. в документации к пакету драйверов Windows.) (For more on XPSDrv, see the Windows Driver Kit documentation.)

Работа диспетчера очереди печати для документов XPS в основном такая же, как и в предыдущих версиях Windows. The operation of the print spooler for XPS documents is essentially the same as in previous versions of Windows. Однако он был усовершенствован для поддержки пути печати XPS в дополнение к существующему пути печати GDI. However, it has been enhanced to support the XPS print path in addition to the existing GDI print path. Новый способ печати изначально использует файл очереди XPS. The new print path natively consumes an XPS spool file. Хотя драйверы принтера пользовательского режима, написанные для предыдущих версий Windows, продолжат работать, для использования пути печати XPS требуется драйвер принтера XPS (XPSDrv). While user-mode printer drivers written for previous versions of Windows will continue to work, an XPS printer driver (XPSDrv) is required in order to use the XPS print path.

Преимущества пути печати XPS существенны и включают: The benefits of the XPS print path are significant, and include:

Поддержка печати в режиме WYSIWYG WYSIWYG print support

Встроенная поддержка дополнительных цветовых профилей, включая 32 бита на канал (bpc), CMYK, именованные цвета, n-краски и встроенную поддержку прозрачности и градиентов. Native support of advanced color profiles, which include 32 bits per channel (bpc), CMYK, named-colors, n-inks, and native support of transparency and gradients.

Улучшенная производительность печати как для платформа .NET Framework, так и для приложений на основе Win32. Improved print performance for both .NET Framework and Win32 based applications.

Стандартный промышленный формат XPS. Industry standard XPS format.

Для основных сценариев печати доступен простой и интуитивно понятный API с одной точкой входа для пользовательского интерфейса, конфигурации и отправки задания. For basic print scenarios, a simple and intuitive API is available with a single entry point for user interface, configuration and job submission. Для расширенных сценариев добавлена дополнительная поддержка настройки пользовательский интерфейс user interface (UI) (или не UI UI вообще), синхронной или асинхронной печати и возможностей пакетной печати. For advanced scenarios, an additional support is added for пользовательский интерфейс user interface (UI) customization (or no UI UI at all), synchronous or asynchronous printing, and batch printing capabilities. Оба параметра обеспечивают поддержку печати в режиме полного или частичного доверия. Both options provide print support in full or partial trust mode.

Читайте также:  Драйвера видеокарт intel для linux mint

Система XPS была разработана с учетом возможностей расширения. XPS was designed with extensibility in mind. С помощью платформы расширяемости функции и возможности можно добавлять в XPS модульным способом. By using the extensibility framework, features and capabilities can be added to XPS in a modular manner. Функции расширяемости включают следующее. Extensibility features include:

Схема печати. Print Schema. Общая схема обновляется регулярно и позволяет быстро расширять возможности устройства. The public schema is updated regularly and enables rapid extension of device capabilities. (См. PrintTicket и PrintCapabilities ниже.) (See PrintTicket and PrintCapabilities below.)

Расширяемый конвейер фильтра. Extensible Filter Pipeline. Конвейер фильтра драйвера принтера XPS (XPSDrv) был разработан так, чтобы обеспечить как прямую, так и масштабируемую печать документов XPS. The XPS printer driver (XPSDrv) filter pipeline was designed to enable both direct and scalable printing of XPS documents. Дополнительные сведения см. в разделе драйверы принтера XPSDrv. For more information, see XPSDrv Printer Drivers.

Архитектура способа печати Print Path Architecture

Хотя приложения Win32 и платформа .NET Framework поддерживают XPS, приложения Win32 и Windows Forms используют преобразование GDI в XPS для создания содержимого в формате XPS для драйвера принтера XPS (XPSDrv). While both Win32 and .NET Framework applications support XPS, Win32 and Windows Forms applications use a GDI to XPS conversion in order to create XPS formatted content for the XPS printer driver (XPSDrv). Эти приложения не обязаны использовать путь печати XPS и могут продолжать использовать распечатку на основе расширенного метафайла (EMF). These applications are not required to use the XPS print path, and can continue to use Enhanced Metafile (EMF) based printing. Однако большинство функций и улучшений XPS доступны только для приложений, предназначенных для печати XPS. However, most XPS features and enhancements are only available to applications that target the XPS print path.

Чтобы включить использование принтеров на основе XPSDrv в приложениях Win32 и Windows Forms, драйвер принтера XPS (XPSDrv) поддерживает преобразование из GDI в формат XPS. To enable the use of XPSDrv-based printers by Win32 and Windows Forms applications, the XPS printer driver (XPSDrv) supports conversion of GDI to XPS format. Модель XPSDrv также предоставляет конвертер для формата XPS в GDI, чтобы приложения Win32 могли печатать документы XPS. The XPSDrv model also provides a converter for XPS to GDI format so that Win32 applications can print XPS Documents. Для приложений WPF преобразование XPS в формат GDI выполняется автоматически Write WriteAsync методами и XpsDocumentWriter класса, когда целевая очередь печати в операции записи не имеет драйвера XPSDrv. For WPF applications, conversion of XPS to GDI format is done automatically by the Write and WriteAsync methods of the XpsDocumentWriter class whenever the target print queue of the write operation does not have an XPSDrv driver. (Windows Forms приложения не могут печатать документы XPS.) (Windows Forms applications cannot print XPS Documents.)

На следующем рисунке показана подсистема печати и определены части, предоставляемые корпорацией Майкрософт, а также части, определяемые поставщиками программного обеспечения и оборудования. The following illustration depicts the print subsystem and defines the portions provided by Microsoft, and the portions defined by software and hardware vendors:

Базовая печать XPS Basic XPS Printing

WPF определяет как базовый, так и расширенный API. WPF defines both a basic and advanced API. Для приложений, которые не нуждаются в расширенной настройке печати или доступе к полному набору функций XPS, доступна базовая поддержка печати. For those applications that do not require extensive print customization or access to the complete XPS feature set, basic print support is available. Базовая поддержка печати предоставляется с помощью элемента управления диалогового окна печати, который требует минимальной конфигурации и представляет знакомый UI UI . Basic print support is exposed through a print dialog control that requires minimal configuration and features a familiar UI UI . При использовании этой упрощенной модели печати доступны многие функции XPS. Many XPS features are available using this simplified print model.

PrintDialog PrintDialog

System.Windows.Controls.PrintDialogЭлемент управления предоставляет единую точку входа для UI UI , настройки и отправки задания XPS. The System.Windows.Controls.PrintDialog control provides a single entry point for UI UI , configuration, and XPS job submission. Сведения о том, как создать и использовать элемент управления, см. в разделе Вызов диалогового окна печати. For information about how to instantiate and use the control, see Invoke a Print Dialog.

Расширенная печать XPS Advanced XPS Printing

Для доступа к полному набору функций XPS необходимо использовать расширенный API печати. To access the complete set of XPS features, the advanced print API must be used. Несколько соответствующих API подробно описаны ниже. Several relevant API are described in greater detail below. Полный список API-интерфейсов пути печати XPS см. в System.Windows.Xps разделе System.Printing ссылки на пространства имен и. For a complete list of XPS print path APIs, see the System.Windows.Xps and System.Printing namespace references.

PrintTicket и PrintCapabilities PrintTicket and PrintCapabilities

PrintTicketКлассы и PrintCapabilities являются основой расширенных функций XPS. The PrintTicket and PrintCapabilities classes are the foundation of the advanced XPS features. Оба типа объектов являются структурами, ориентированными на печать в формате XML, такими как параметры сортировки, двусторонняя печать, сшивание и т. д. Эти структуры определяются схемой печати. Both types of objects are XML formatted structures of print-oriented features such as collation, two-sided printing, stapling, etc. These structures are defined by the print schema. Объект PrintTicket указывает принтеру, как обрабатывать задание печати. A PrintTicket instructs a printer how to process a print job. Класс PrintCapabilities определяет возможности принтера. The PrintCapabilities class defines the capabilities of a printer. Запрашивая возможности принтера, можно создать PrintTicket, который использует все преимущества поддерживаемых возможностей принтера. By querying the capabilities of a printer, a PrintTicket can be created that takes full advantage of a printer’s supported features. Аналогичным образом можно избежать неподдерживаемых функций. Similarly, unsupported features can be avoided.

В следующем примере демонстрируется, как запрашивать PrintCapabilities принтера и создавать PrintTicket с помощью кода. The following example demonstrates how to query the PrintCapabilities of a printer and create a PrintTicket using code.

PrintServer и PrintQueue PrintServer and PrintQueue

Класс PrintServer представляет сетевой сервер печати, а класс PrintQueue представляет принтер и связанную с ним очередь выходных заданий. The PrintServer class represents a network print server and the PrintQueue class represents a printer and the output job queue associated with it. Вместе эти интерфейсы API позволяют выполнять расширенное управление заданиями печати сервера. Together, these APIs allow advanced management of a server’s print jobs. Объект PrintServer или один из его производных классов используется для управления PrintQueue. A PrintServer, or one of its derived classes, is used to manage a PrintQueue. Метод AddJob используется для вставки нового задания печати в очередь. The AddJob method is used to insert a new print job into the queue.

Читайте также:  Как определить с какого диска грузится windows

В следующем примере демонстрируется создание LocalPrintServer и доступ к его PrintQueue по умолчанию с помощью кода. The following example demonstrates how to create a LocalPrintServer and access its default PrintQueue by using code.

XpsDocumentWriter XpsDocumentWriter

Объект XpsDocumentWriter с множеством Write WriteAsync методов и используется для записи XPS-документов в PrintQueue . An XpsDocumentWriter, with its many the Write and WriteAsync methods, is used to write XPS documents to a PrintQueue. Например, Write(FixedPage, PrintTicket) метод используется для вывода документа XPS и PrintTicket синхронно. For example, the Write(FixedPage, PrintTicket) method is used to output an XPS document and PrintTicket synchronously. WriteAsync(FixedDocument, PrintTicket)Метод используется для вывода документа XPS и PrintTicket асинхронно. The WriteAsync(FixedDocument, PrintTicket) method is used to output an XPS document and PrintTicket asynchronously.

В следующем примере показывается, как создать XpsDocumentWriter с помощью кода. The following example demonstrates how to create an XpsDocumentWriter using code.

Методы AddJob также предоставляют способы печати. The AddJob methods also provide ways to print. Дополнительные сведения см. в разделе Печать XPS-файлов программным способом. See Programmatically Print XPS Files. . for details.

Способ печати GDI GDI Print Path

Хотя приложения WPF изначально поддерживают путь печати XPS, приложения Win32 и Windows Forms также могут воспользоваться преимуществами некоторых функций XPS. While WPF applications natively support the XPS print path, Win32 and Windows Forms applications can also take advantage of some XPS features. Драйвер принтера XPS (XPSDrv) может преобразовывать выходные данные на основе GDI в формат XPS. The XPS printer driver (XPSDrv) can convert GDI based output to XPS format. Для расширенных сценариев поддерживается настраиваемое преобразование содержимого с помощью конвертера документов XPS (Майкрософт) (мксдк). For advanced scenarios, custom conversion of content is supported using the Microsoft XPS Document Converter (MXDC). Аналогичным образом приложения WPF также могут выводить данные в путь печати GDI путем вызова одного Write из WriteAsync методов или XpsDocumentWriter класса и назначения принтера без XPSDrv в качестве целевой очереди печати. Similarly, WPF applications can also output to the GDI print path by calling one of the Write or WriteAsync methods of the XpsDocumentWriter class and designating a non-XpsDrv printer as the target print queue.

Для приложений, не требующих функциональности или поддержки XPS, текущий путь печати GDI остается неизменным. For applications that do not require XPS functionality or support, the current GDI print path remains unchanged.

  • Дополнительные справочные материалы по способу печати GDI и различным параметрам преобразования XPS см. в статье конвертеры документов XPS (мксдк) и драйверы принтера XPSDrv. For additional reference material on the GDI print path and the various XPS conversion options, see Microsoft XPS Document Converter (MXDC) and XPSDrv Printer Drivers.

Модель драйвера XPSDrv XPSDrv Driver Model

Путь печати XPS повышает эффективность очереди печати за счет использования XPS в качестве собственного формата очереди печати при печати на принтере или драйвере, поддерживающем XPS. The XPS print path improves spooler efficiency by using XPS as the native print spool format when printing to an XPS -enabled printer or driver. Упрощенный процесс буферизации устраняет необходимость создания промежуточного файла буферизации, например файла данных EMF, перед помещением в очередь документа. The simplified spooling process eliminates the need to generate an intermediate spool file, such as an EMF data file, before the document is spooled. Благодаря уменьшению размеров файлов очереди печать XPS может уменьшить сетевой трафик и повысить производительность печати. Through smaller spool file sizes, the XPS print path can reduce network traffic and improve print performance.

EMF — это закрытый формат, представляющий выходные данные приложения в виде последовательности вызовов GDI для служб отрисовки. EMF is a closed format that represents application output as a series of calls into GDI for rendering services. В отличие от EMF, формат буферизации XPS представляет фактический документ без необходимости дальнейшей интерпретации при выходе в драйвер принтера на основе XPS (XPSDrv). Unlike EMF, the XPS spool format represents the actual document without requiring further interpretation when output to an XPS-based printer driver (XPSDrv). Драйверы могут работать непосредственно с данными в этом формате. The drivers can operate directly on the data in the format. Эта возможность устраняет необходимость преобразования данных и цветового пространства при использовании файлов EMF и драйверов печати на основе GDI. This capability eliminates the data and color space conversions required when you use EMF files and GDI-based print drivers.

Размеры файлов в очереди обычно уменьшаются при использовании документов XPS, предназначенных для драйвера принтера XPS (XPSDrv), по сравнению с их эквивалентами EMF; Однако существуют исключения. Spool file sizes are usually reduced when you use XPS Documents that target an XPS printer driver (XPSDrv) compared with their EMF equivalents; however, there are exceptions:

Очень сложная, многоуровневая или неэффективно созданная векторная графика может быть больше, чем растровая версия того же графического объекта. A vector graphic that is very complex, multi-layered, or inefficiently written can be larger than a bitmapped version of the same graphic.

Для отображения экрана XPS-файлы внедряют шрифты устройства, а также шрифты на компьютере; тогда как файлы очереди GDI не внедряют шрифты устройства. For screen display purposes, XPS files embed device fonts as well as computer-based fonts; whereas GDI spool files do not embed device fonts. Но оба типа шрифтов имеют поднаборы (см. ниже), и драйверы принтера могут удалить шрифты устройства до передачи файла на принтер. But both kinds of fonts are subsetted (see below) and printer drivers can remove the device fonts before transmitting the file to the printer.

Уменьшение размера очереди выполняется посредством нескольких механизмов. Spool size reduction is performed through several mechanisms:

Поднабор шрифта. Font subsetting. В XPS-файл будут храниться только символы, используемые в фактическом документе. Only characters used within the actual document are stored in the XPS file.

Поддержка расширенной графики. Advanced Graphics Support. Встроенная поддержка прозрачности и примитивов градиента позволяет избежать растрирования содержимого в документе XPS. Native support for transparency and gradient primitives avoids rasterization of content in the XPS Document.

Идентификация общих ресурсов. Identification of common resources. Ресурсы, которые используются несколько раз (например, изображение, представляющее эмблему организации), рассматриваются как общие ресурсы и загружаются только один раз. Resources that are used multiple times (such as an image that represents a corporate logo) are treated as shared resources and are loaded only once.

Сжатие ZIP. ZIP compression. Все документы XPS используют сжатие ZIP. All XPS documents use ZIP compression.

Оцените статью