PRINT: Prints a text file.


 


... The examples for the command "PRINT"
... "PRINT" Excerpt from Microsoft Windows Help
... Important information, tips for the "PRINT" command

The command: "PRINT" is on Windows 11, 10, .. , MS Server 2025, 2022, 2019, .. available

The examples for the command "PRINT"

In modern versions of Windows, the `PRINT` command is no longer used to print directly from the command prompt. Instead, specialized printing commands or tools are typically used. Here are some alternatives and examples for printing in Command Prompt: Example 1: Using `Notepad` command to print:

Notepad /P "C:\Path\to\Textfile.txt"

Description: The `Notepad` command can be used with the `/P` option to print a text document. He opens the document in Notepad and outputs the print options. Example 2: Using `PrintUI` command to add a printer:

RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /c\\computername /n\\printservername\printername

Description: The `PrintUI` command can be used to add printers. Note that this may require administrative rights. Example 3: Using PowerShell to print a document:

Start-Process -FilePath "C:\Path\to\File.pdf" -Verb Print

Description: This uses PowerShell to initiate printing of a file. The `Start-Process` command with the `-Verb Print` option starts the standard printing process. Example 4: Using `TYPE` and `COPY` with LPT1 (historical):

TYPE "C:\Path\to\Textfile.txt" > LPT1

Description: Historically, the `LPT1` port was used to print directly to a connected printer. `TYPE` is used to send the content to `LPT1`. Note that examples may vary depending on your specific printer setup. Modern applications typically use specialized print commands or print APIs, and outputting directly to a printer via the command prompt is less common. If you have specific requirements or tools for printing, it might be helpful to know them to provide a more specific example.

"PRINT" Excerpt from Microsoft Windows Help

Microsoft Windows [Version 10.0.19045.3693]
(c) Copyright 1985-2023 Microsoft Corp.

C:\\WINDOWS>

Prints a text file.

PRINT [/D:device] [[drive:][path]filename[...]]

   /D:device   Specifies a print device.

Important information, tips for the "PRINT" command

In modern versions of Windows, there is no longer a direct `PRINT` command in the command prompt for printing files. Instead, specialized printing commands or tools are used. Here are some considerations and tips: 1. Printer Drivers and Installation: Make sure the printer you want to use is properly installed and set up. Windows typically uses standard printer drivers, but specific features or printer models may require specific drivers. 2. Print commands or tools: Instead of the obsolete `PRINT` command, specialized printing commands or tools are used today. Examples include `Notepad /P`, `PrintUI`, `PowerShell` or specialized third-party software. 3. File Format: Check the file format you want to print. Some printers support certain formats better than others. For example, PDF files are easily processed by many printers. 4. Printer Queue: Note that print jobs are held in a queue before they are printed. Make sure the print queue is OK and that there are no blocked jobs. 5. Admin Rights: Some printing operations require administrator rights, especially if you want to add or remove printers. Make sure you have the necessary permissions. Here are some examples of alternative print commands: - Notepad command:

  Notepad /P "C:\Path\to\Textfile.txt"
  
- PowerShell command:

  Start-Process -FilePath "C:\Path\to\File.pdf" -Verb Print
  
- PrintUI command (for adding a printer):

  RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /c\\computername /n\\printservername\printername
  
It's important to note that the exact steps and commands may vary depending on your specific printer software, printer model, and operating system. It's always a good idea to check your printer's documentation or Windows Help for specific instructions.


Deutsch
English
Español
Français
Italiano
日本語 (Nihongo)
한국어 (Hangugeo)
汉语 (Hànyǔ)
Türkçe
Português
Português
Svenska
Norsk
Dansk
Suomi
Nederlands
Polski









Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... Windows 10 FAQ



The command PRINT - Prints a text file.

HTTP: ... console/en/048.htm
0.108
9063
Help, can not change the language on Samsung mobile phone with Android! Open and start Internet Explorer always on Windows 8.1 / 10 desktop (turn off Metro App)! Eigenes Bild als Desktophintergrund in Windows 8.1 und Acht verwenden (ändern, einsetzen)! Das automatische Annehmen der Anrufe beim Headset Einsatz aktivieren? How to change the Windows 8 user password, remove or create? Wie kann ich die offenen Shop Apps in Windows 8.1 Metro schließen? Hilfe bei Windows 8.1 / 10  sind keine Desktopverknüpfungen möglich, was mach ich falsch? How can I turn off ClearType in Windows 8.1 or 10? I am trying to uninstall Google Chrome. How can I do it? Computer Management in Windows 8.1 and 10 (Find, Open and Run)?



(0)