? How get equivalent of cmd line dir > prn ?

highmeadowhiker

New member
Member
Local time
7:56 PM
Messages
47
Those who have never in their lives used any DOS, or the fake DOS CMD remnants embedded in Windows since Win 2000, will probably not understand why I would ever be using anything resembling a "command line."

I used the command line DIR > PRN, where PRN is the default printer device, for longer than a quarter century, for specific reasons. This yields a fairly concise listing with much information. I thought that Win XP allowed this from a (pseudo)DOS prompt; maybe I remember incorrectly, and this worked only on earlier Windows versions.

I have just figured out (stumbled onto) how to get a "command line prompt" in Win 7. Hit the Windows key, and type CMD into the search field. I can get a DIR on a given drive OK. But DIR > PRN warns me that the file, presumably PRN, cannot be found. So just since I started typing this post, I stumbled around and guessed that I could redirect the DIR to a txt file in some convenient directory. This works.

I got to a pseudo-DOS screen, by hitting the Windows key, typing CMD, then typing DIR > listing.txt (could be any filename)

The DIR listing was redirected to a new file, which I could then print by any of several means.

Anybody suggest a shorter path to getting a DOS-like DIR printout?
 

My Computer My Computer

At a glance

Win 7 Pro 64-biti7 9209 GB DDR3
Computer Manufacturer/Model Number
Dell Studio XPS 9000
OS
Win 7 Pro 64-bit
CPU
i7 920
Memory
9 GB DDR3
Microsoft has included a command line interface in all of their operating systems. Being a long time computer user myself, there are a number of things that I do from the command line and wouldn't have it any other way. BTW: I'm also a Linux admin...so I'm very comfortable at a command line interface.

I've been doing to the redirect to a file from the Windows and Linux command line for a number of years. I'm not aware of any quicker way.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Q9550 2.83Ghz OC'd to 3.40Ghz8GB G.Skill PI DDR2-800, 4-4-4-12 timingsEVGA 1280MB Nvidia GeForce GTX570
Computer Manufacturer/Model Number
Self-Built in July 2009
OS
Windows 7 Ultimate x64
CPU
Intel Q9550 2.83Ghz OC'd to 3.40Ghz
Motherboard
Gigabyte GA-EP45-UD3R rev. 1.1, F12 BIOS
Memory
8GB G.Skill PI DDR2-800, 4-4-4-12 timings
Graphics Card(s)
EVGA 1280MB Nvidia GeForce GTX570
Sound Card
Realtek ALC899A 8 channel onboard audio
Monitor(s) Displays
23" Acer x233H
Screen Resolution
1920x1080
Hard Drives
Intel X25-M 80GB Gen 2 SSD
Western Digital 1TB Caviar Black, 32MB cache. WD1001FALS
PSU
Corsair 620HX modular
Case
Antec P182
Cooling
stock
Keyboard
ABS M1 Mechanical
Mouse
Logitech G9 Laser Mouse
Internet Speed
15/2 cable modem
Other Info
Windows and Linux enthusiast. Logitech G35 Headset.

My Computer My Computer

At a glance

Windows 7 Enterprise (x64); Windows Server 20...16GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Dell OP7010
OS
Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
Memory
16GB
Monitor(s) Displays
4 Dell 24" LCD
Screen Resolution
1280x1024
Keyboard
Dell
Mouse
Dell Optical
Internet Speed
40meg

My Computer My Computer

At a glance

win7.7100x64core2duo t58704gb
Computer Manufacturer/Model Number
hp
OS
win7.7100x64
CPU
core2duo t5870
Memory
4gb
Monitor(s) Displays
l2245w
hi

I'm not sure if I really understand what you want to do, but try this: Windows 7 Blog | Inhalt der Eingabeaufforderung kopieren

basically with the command: "dir | clip" you get the whole output of the command (dir) into the windows clipboard.
thanks for that!

also, you might find useful a trick to open command line (cmd) in your current explorer folder: Just press Shift+RMB, and you should get a 'hidden' context menu : "Open command window here"
then use aforementioned "dir | clip", and you're good to go.
 

My Computer My Computer

At a glance

W7 U x64
Computer type
PC/Desktop
OS
W7 U x64
Back
Top