Logo
programming4us
programming4us
programming4us
programming4us
Home
programming4us
XP
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Windows Phone
 
Windows Server

Windows Server 2008 Server Core : Performing a Formatted Printout with Notepad

11/18/2011 3:24:22 PM
Many people associate Notepad with a utility that you use in the Windows GUI, and that's where you use it most often. However, Notepad and many other applications have a hidden side. Unfortunately, you won't discover this hidden side by typing the command name followed by a /?. Notepad and other Windows applications won't provide you with any help for using them at the command line, yet this command line functionality still exists.

To locate such functionality, you must rely on the registry editor, RegEdit. To start this utility, type RegEdit at the command line and press Enter. At this point you need to look at the HKEY_ CLASSES_ROOT hive. Locate the extension of the file that you want to work with. The example uses the .txt entry shown in Figure 1. The (Default) entry shown in the right pane contains the essential information; the file association.



Figure 1. Locate the extension of the file you want to print from the command line.




Now that you know the file association, locate its entry in the registry. Figure 2 shows the entries for the txtfile association. The entry you want is the command for the print command shown highlighted in the figure. Notice that this command calls on Notepad with an undocumented /p command line switch to perform the printing. The %1 after the command line switch is the name of the file. Consequently, if you want to print a text file at the command line using Notepad, you simply type Notepad /p filename and press Enter.

Figure 2. The file association provides clues as to how to use graphical utilities at the command line.
Other -----------------
- Windows Server 2008 Server Core : Obtaining General System Information with the MSInfo32 Utility
- SQL SErver 2008 R2 : Parallel Query Processing
- SQL SErver 2008 R2 : Other Query Processing Strategies
- Configuring and Using Active Directory Certificate Services (part 4) - Protecting Your AD CS Configuration
- Configuring and Using Active Directory Certificate Services (part 3) - Considerations for the Use and Management of AD CS & Working with Enterprise PKI
- Configuring and Using Active Directory Certificate Services (part 2) - Finalizing the Configuration of an Online Responder
- Configuring and Using Active Directory Certificate Services (part 1) - Finalizing the Configuration of an Issuing CA
- Windows Server 2003 : The Security Configuration Wizard
- Windows Server 2003 : Understanding Security Considerations
- Microsoft Content Management Server : Moving Postings
 
 
Top 10 video Game
-   Uncharted 4: A Thief's End | E3 2015 Extended Gameplay Trailer
-   V.Next [PC] Kickstarter Trailer
-   Renowned Explorers [PC] Launch Date Trailer
-   The Void (Game Trailer)
-   World of Warships [PC] Open Beta Trailer
-   F1 2015 | Features Trailer
-   Battle Fantasia Revised Edition | Debut Trailer for Steam
-   Victor Vran [PC] Story Trailer
-   Star Wars Battlefront PC Alpha footage
-   Skyforge [PC] Open Beta Gameplay Trailer
-   Armored Warfare [PC] PvE Trailer
-   F1 2015 [PS4/XOne/PC] Features Trailer
-   Act of Aggression [PC] Pre-Order Trailer
-   Sword Coast Legends [PC] Campaign Creation E3 2015 Trailer
-   Sword Coast Legends [PC] Campaign Creation E3 2015 Dungeon Run Trailer
Popular tags
Microsoft Access Microsoft Excel Microsoft OneNote Microsoft PowerPoint Microsoft Project Microsoft Visio Microsoft Word Active Directory Biztalk Exchange Server Microsoft LynC Server Microsoft Dynamic Sharepoint Sql Server Windows Server 2008 Windows Server 2012 Windows 7 Windows 8 windows Phone 7 windows Phone 8
programming4us programming4us
 
Popular keywords
HOW TO Swimlane in Visio Visio sort key Pen and Touch Creating groups in Windows Server Raid in Windows Server Exchange 2010 maintenance Exchange server mail enabled groups Debugging Tools Collaborating
programming4us programming4us
PS4 game trailer XBox One game trailer
WiiU game trailer 3ds game trailer
Trailer game
 
programming4us
Natural Miscarriage
programming4us
Windows Vista
programming4us
Windows 7
programming4us
Windows Azure
programming4us
Windows Server
programming4us
Game Trailer