Redirection > >> < | redirect input output append pipe in MS DOS command, A number of DOS commands send output to the screen and/or require input from the user. Redirection is a mechanism whereby the output of a command can be fed either to some other device for example, a printer or file, or to another program or command

Data Recovery Software
Software Development Home Contact us Support

Data Recovery | Data Recovery Software | Partition Recovery | Undelete Partition | Password Recovery | Keylogger | File Recovery | Undelete Software

Redirection

A number of DOS commands send output to the screen and/or require input from the user. Redirection is a mechanism whereby the output of a command can be fed either to some other device for example, a printer or file, or to another program or command.

There are four redirection functions:

Redirect output

>> 

Append

Redirect input

|

Pipe

>

Redirects a command's output from the "standard output device" (usually the monitor) to another device (e.g. printer) or a file.

Syntax:

To redirect output to a device:

Command > Device

To redirect output to a file:

Command > Filename

Data Recovery
Digital Camera Data Recovery File Recovery Software Data Recovery Services Undelete Files
Data Recovery Utility USB Drive Data Recovery Files Recovery Pen Drive Data Recovery
Data Recovery Utilities Windows Data Recovery iPod Data Recovery Data Retrieval Software

Acceptable Device names are, CON (Monitor), PRN (LPT1 - assumed to be the printer), LPT1 - 3 (Parallel Ports - usually connected to a printer), COM 1 - 4 (Serial Ports) and NUL (an electronic void).

If anything other than a recognized device is specified, it is assumed to be the name of a file. If a file already exists with the specified Filename, it is overwritten without any Warnings. Let us see some Examples to better understand it.

Probably the most common uses of this redirection function is to send directory listings to the printer or to save them as a file. To print out a sorted directory listing of all files in the Windows directory:

DIR c:\windows /o/a > PRN

To create a file containing the directory listing of the same directory:

DIR c:\windows /o/a > d:\windows.txt

>>

Appends the output from a command to the specified file.

Syntax:

Command >> Filename

If Filename does not exist, it is created. If Filename does exist, the output from the command is added to it, unlike the > function where the original contents are overwritten. Let us better understand it with example.

To add the directory listing of the files in the c:\windows\system directory to that created before:

DIR c:\windows\system /o/a >> d:\windows.txt

Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi
Data Recovery with & without Programming


Publishers of the Book
Number of Pages
ISBN
Price of the Book


BPB Publications, New Delhi, India
540
81-7656-922-4
$69.00 (Including Shipping Charges, Cost of Book and Other expenses, Free Source Code CD included with the Book)





Buy Data recovery Book

Previous page

page 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Next page
System Utilities System Utilities
Keylogger Keylogger
Secure Data Wiper Secure Data Wiper

Data recovery software Data recovery software
Windows Data Recovery Software Windows Data Recovery Software
iPod Data Recovery Software iPod Data Recovery Software
Memory Card Data Recovery Software Memory Card Data Recovery Software
Pen Drive Data Recovery Software Pen Drive Data Recovery Software
Digital Camera Data Recovery Software Digital Camera Data Recovery Software
Removable Media Data Recovery Software Removable Media Data Recovery Software
FAT Data Recovery Software

FAT Data Recovery Software

NTFS Data Recovery Software NTFS Data Recovery Software
Zune Music Recovery Software Zune Music Recovery Software
Sim Card Data Recovery Software Sim Card Data Recovery Software
Digital Pictures Recovery Software Digital Pictures Recovery Software

Real Estate Noida

Real Estate Noida

Real Estate Ghaziabad

Real Estate Ghaziabad

Web Services

Web Services

Website Design

Website Design

Live Chat Online

Live Chat Online

Link Exchange

Link Exchange

Software Development

Software Development

Mobile Website Design

Mobile Website Design

Data Retrieval

Data Retrieval

File Recovery Tools

File Recovery Tools

Files Recovery

Files Recovery

Memory Stick Data Recovery

Memory Stick Data Recovery

iPod Restore

iPod Restore

Hard Drive Data Recovery

Hard Drive Data Recovery

Data Recovery Tools

Data Recovery Tools

Mobile Phone Data Recovery

Mobile Phone Data Recovery

© Copyright 2002-2005 DataDoctor.Biz

Home | Contact us | Downloads | Services | Resources | Terms and conditions | Site map

Languages: English Spanish French German italian portuguese Japanese Korean Chinese Russian Dutch Greek
Data Recovery Book: English Spanish French German Italian Portuguese Japanese Korean Chinese Russian Dutch Greek