A working example first.
Code: Select all
C:\temp>copy CON example1.txt
aa.aaa@aa.aaa^Z
1 file(s) copied.
C:\temp>find /i "a" example1.txt
---------- EXAMPLE1.TXT
aa.aaa@aa.aaa
C:\temp>notepad example1.txt
This next example does NOT work.
Code: Select all
C:\temp>copy CON example2.txt
aa.aaa@a.aaa^Z
1 file(s) copied.
C:\temp>find /i "a" example2.txt
---------- EXAMPLE2.TXT
C:\temp>notepad example2.txt
C:\temp>
Also, if you open example2.txt in notepad, it looks like junk. If you create the email address from the second example with notepad. The address is stored as hex "ffee610061002e006100610061004000 61002e00610061006100" not "aa.aaa@aa.aaa".
Can anyone explain why DOS thinks that "aa.aaa@aa.aaa^z" is a binary file?