1)把执行文件xxx.exe 和读取的文件yyy.txt放在一个地方
2)用dos 命令 dir 和cd,打开存放文件的文件夹
3)window 7 情况下 输入xxx.exe < yyy.txt
就把yyy.txt的内容读取显示在窗口上。
ps:xxx.exe 是读取显示程序。
4)不用新建txt文件,直接输入xxx.exe>zzz.txt 然后输入想保存的内容,然后开始新行输入Ctrl+z,系统直接新建一个zzz.txt文件,把内容保存里面。。
5)直接xxx.exe<yyy.txt>aaa.txt 或者xxx.exe>aaa.txt<yyy.txt 直接把yyy.txt的内容拷贝到新建文件aaa.txt中。
6)最常用的命令
cd 改变当前目录 sys 制作DOS系统盘
copy 拷贝文件 del 删除文件
deltree 删除目录树 dir 列文件名
diskcopy 制磁盘 edit 文本编辑
format 格式化磁盘 md 建立子目录
mem 查看内存状况 type 显示文件内容
rd 删除目录 ren 改变文件名
cls 清屏