China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-22 18:21
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Can text files be edited in DOS environment? View 2,044 Replies 10
Original Poster Posted 2007-04-10 07:01 ·  中国 湖北 咸宁 电信
新手上路
Credits 14
Posts 6
Joined 2007-04-04 15:54
19-year member
UID 83954
Gender Male
Status Offline
Can text files be edited in a pure DOS environment
Floor 2 Posted 2007-04-10 07:32 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
edit can be edited.
Floor 3 Posted 2007-04-10 07:35 ·  中国 湖北 咸宁 电信
新手上路
Credits 14
Posts 6
Joined 2007-04-04 15:54
19-year member
UID 83954
Gender Male
Status Offline
Can you speak in more detail? I'm a newbie. It's troublesome.
Floor 4 Posted 2007-04-10 07:36 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
If you are MS-DOS, you can directly run edit, and then create and open files for editing in the file menu.
Floor 5 Posted 2007-04-10 08:21 ·  中国 安徽 蚌埠 电信
中级用户
★★
Credits 292
Posts 137
Joined 2007-04-03 01:59
19-year member
UID 83758
Gender Male
Status Offline
The command edit 1.txt (add the absolute address for the file you want to edit)
For example, edit c:\1.txt
If (pure DOS should not support it) the mouse is not supported, you can use alt+f to save after editing
When saving, you also need to bring the file extension; otherwise, the saved file will have no file extension
Floor 6 Posted 2007-04-11 00:28 ·  加拿大 Bell
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Originally posted by bw070 at 2007-4-9 07:21 PM:
Command: edit 1.txt (the file you want to edit, add the absolute address)
For example: edit c:\1.txt
If (in pure DOS, it should not be supported) does not support the mouse, you can use alt+f to save after editing
When saving, you also need to bring the file extension; otherwise, the saved file will have no extension.


In pure DOS, using this EDIT does support the mouse, of course, provided that the mouse driver is loaded (such as CTMOUSE and so on).
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 7 Posted 2007-04-11 01:49 ·  中国 湖北 咸宁 电信
新手上路
Credits 14
Posts 6
Joined 2007-04-04 15:54
19-year member
UID 83954
Gender Male
Status Offline
If you want to edit files in Chinese characters, do you need to install a Chinese localization software?
Floor 8 Posted 2007-04-11 07:16 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
It's not a localized software, but something like UCDOS and so on.
简单就是美
Floor 9 Posted 2007-04-12 00:00 ·  中国 湖南 怀化 电信
初级用户
Credits 36
Posts 14
Joined 2007-04-04 06:01
19-year member
UID 83910
Gender Male
Status Offline
Oh, just use COPY CON filename. suffix (txt) and then when exiting, press CTRL+Z and then enter.
Floor 10 Posted 2007-05-13 01:15 ·  中国 浙江 杭州 华数宽带
新手上路
Credits 6
Posts 3
Joined 2007-05-13 00:34
19-year member
UID 88342
Gender Male
Status Offline
Oh, I see. Just use "COPY CON filename.suffix (txt)" and when you want to exit, press CTRL+Z and then enter.
------------------------------------------------------------------------------------------------
You're very good, the input is correct
Floor 11 Posted 2007-12-03 19:53 ·  中国 山西 忻州 电信
初级用户
Credits 32
Posts 16
Joined 2007-11-28 21:00
18-year member
UID 104093
Gender Male
Status Offline
Actually, you can use "copy con" to edit many plain text files. Both DOC and TXT files can be edited under MS-DOS.
Forum Jump: