Jump to content

Featured Replies

Posted

At the command line, if I say

dir > 123

then CMD.EXE sends a listing of the directory to a file named 123.

If you read 123 using NOTEPAD you see the directory listing presented as a

normal vertical column of directory entries.

The lines are separated by 0Dh 0Ah bytes - Carriage Return and Line Feed

 

If I say DISKPART > 123

then CMD.EXE sends the text output to file 123. The text is the usual

Microsoft Copyright stuff.

When you read it with NOTEPAD the lines are not seperated vertically - they

all run together.

When you view it as HEX you see the lines are separated by 0Ah - but no

Carriage Return.

 

What's up with that ???

Why they do it like that ???

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...