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-21 04:46
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » Looking for the smallest EDIT.COM View 21,971 Replies 74
Floor 46 Posted 2009-06-14 06:29 ·  中国 北京 联通
新手上路
Credits 2
Posts 1
Joined 2009-06-13 13:28
17-year member
UID 147332
Gender Male
Status Offline
Good stuff, I also need...
Floor 47 Posted 2009-08-24 05:08 ·  中国 上海 宝山区 电信
新手上路
Credits 2
Posts 1
Joined 2008-11-26 17:48
17-year member
UID 132163
Gender Male
Status Offline
I also want to download and have a look, the system crashed
Floor 48 Posted 2009-08-25 05:15 ·  中国 河南 信阳 联通
初级用户
Credits 36
Posts 16
Joined 2009-08-23 00:39
16-year member
UID 150800
Gender Male
Status Offline
Is this little bit of work enough?
Floor 49 Posted 2009-10-15 14:29 ·  中国 江苏 南京 电信
初级用户
Credits 42
Posts 18
Joined 2009-05-13 04:48
17-year member
UID 144972
Gender Male
Status Offline
Top, I downloaded the second one.
Floor 50 Posted 2009-10-20 15:54 ·  中国 四川 攀枝花 电信
新手上路
Credits 6
Posts 3
Joined 2009-10-10 20:09
16-year member
UID 152905
Gender Male
Status Offline
Just what I needed, thanks for providing.
Floor 51 Posted 2009-10-28 01:28 ·  中国 广东 珠海 电信
新手上路
Credits 16
Posts 8
Joined 2009-08-03 12:09
16-year member
UID 149798
Gender Male
Status Offline
Thanks, I've been looking for it for a long time.
Floor 52 Posted 2009-11-29 17:10 ·  中国 湖北 黄冈 黄州区 电信
新手上路
Credits 2
Posts 1
Joined 2009-08-16 04:52
16-year member
UID 150450
Gender Male
Status Offline
dddddddddddddddddddddddd
Floor 53 Posted 2009-12-10 15:41 ·  中国 广东 深圳 联通
新手上路
Credits 10
Posts 5
Joined 2009-12-08 15:12
16-year member
UID 156142
Gender Male
Status Offline
Look, it seems to be the same size as mine, right?
Floor 54 Posted 2010-01-13 04:30 ·  美国 加利福尼亚州 洛杉矶 南加州大学
新手上路
Credits 2
Posts 1
Joined 2010-01-12 14:41
16-year member
UID 158517
Gender Male
Status Offline
I want to download~~
Floor 55 Posted 2010-03-17 09:23 ·  中国 山东 临沂 兰山区 联通
初级用户
Credits 31
Posts 16
Joined 2007-01-29 02:02
19-year member
UID 77984
Gender Male
Status Offline
Download the first one, thanks. Actually, I put it on the USB flash drive as a bootable disk. The size doesn't matter, as long as it works.
Floor 56 Posted 2010-03-28 17:38 ·  中国 陕西 西安 电信
初级用户
Credits 88
Posts 32
Joined 2010-03-27 14:30
16-year member
UID 163163
Gender Male
Status Offline
Reply to earn some points, next down
Floor 57 Posted 2010-04-02 10:53 ·  中国 浙江 杭州 电信
初级用户
Credits 78
Posts 34
Joined 2009-12-01 21:29
16-year member
UID 155755
Gender Male
Status Offline
Post a batch script for edit (above XP)
I know this doesn't meet the lz's requirements, just posting for fun..

After running, in edit mode (prompt is "line number: "), entering "!control" can enter control mode (prompt is ">")


@echo off
setlocal enabledelayedexpansion
echo.
echo Text Editor
echo Coded by neko, 2010. All rights reserved.

:: Temporary file setting
set tempfile=%temp%\edit.tmp
:: Control entry setting
set ctrcmd=!control
:: File name setting
if not "%1"=="" (set filename=%1
goto EDITOLD)
goto CONTROL

:CONTROL
echo.
:CONTCYCLE
set /p ecmd=">"
for /f "tokens=1" %%i in ("%ecmd%") do set ecmdf=%%i
for /f "tokens=2" %%i in ("%ecmd%") do set ecmd1=%%i
:: File operations
if "%ecmdf%"=="new" (
set filename=New Text Document.txt
echo.
goto CREATENEW
)
if "%ecmdf%"=="open" (
set filename=!ecmd1!
goto EDITOLD
)
if "%ecmdf%"=="save" (
if exist "!filename!.bak" del "!filename!.bak" /f
if exist "!filename!" move "!filename!" "!filename!.bak"
copy "%tempfile%" "!filename!"
goto EDITOLD
)
if "%ecmdf%"=="saveas" (
set filename=!ecmd1!
if exist "!filename!.bak" del "!filename!.bak" /f
if exist "!filename!" move "!filename!" "!filename!.bak"
copy "%tempfile%" "!filename!"
goto EDITOLD
)
if "%ecmdf%"=="back" (
if "%editstate%"=="CREATE_NEW" set /a line=!line!-1
echo.
goto EDITPARA
)
if "%ecmdf%"=="exit" (
if exist "%tempfile%" del "%tempfile%" /f
goto EOF
)
if "%ecmdf%"=="help" goto HELP
:: Line operations
if "%ecmdf%"=="insert" goto INSERT
if "%ecmdf%"=="line.insert" goto LINSERT
if "%ecmdf%"=="line.delete" goto LDELETE
if "%ecmdf%"=="line.edit" goto LEDIT
echo '%ecmdf%' is not a valid command, please type help to query control commands.
echo.
goto CONTCYCLE

:NOPEN
echo No editable file is opened.
goto CONTROL

:NOLINE
echo The specified line number does not exist.
goto CONTROL

:HELP
echo.
echo New new
echo Open open
echo Save save
echo Save as saveas
echo Back back
echo Exit exit
echo Help help
echo.
echo Insert segment insert
echo Insert line line.insert
echo Delete line line.delete
echo Edit line line.edit
goto CONTROL

:INSERT
if "!filename!"=="" goto NOPEN
if !ecmd1! LEQ 0 goto NOLINE
set /a line=!line!+1
if !ecmd1! GTR !line! goto NOLINE
echo.
if exist "%tempfile%.1" del "%tempfile%.1" /f
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
if !line! LSS !ecmd1! echo %%i>>"%tempfile%.1"
)
set /a line=!ecmd1!-1
:INSPARA
set /a line=!line!+1
set /p cLine="%line%: "
if not "%cLine%"=="%ctrcmd%" (
echo ^%cLine%>>"%tempfile%.1"
goto INSPARA)
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
if !line! GEQ !ecmd1! echo %%i>>"%tempfile%.1"
)
if exist "%tempfile%" del "%tempfile%" /f
move "%tempfile%.1" "%tempfile%"
goto EDITCUR

:LINSERT
if "!filename!"=="" goto NOPEN
if !ecmd1! LEQ 0 goto NOLINE
if !ecmd1! GTR !line! goto NOLINE
echo.
set /p cLine="!ecmd1!: "
if exist "%tempfile%.1" del "%tempfile%.1" /f
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
if !line! LSS !ecmd1! echo %%i>>"%tempfile%.1"
if !line! EQU !ecmd1! echo ^%cLine%>>"%tempfile%.1"
)
set /a ecmd1=!ecmd1!-1
for /f "skip=%ecmd1% tokens=*" %%i in (%tempfile%) do echo %%i>>"%tempfile%.1"
if exist "%tempfile%" del "%tempfile%" /f
move "%tempfile%.1" "%tempfile%"
goto EDITCUR

:LDELETE
if "!filename!"=="" goto NOPEN
if !ecmd1! LEQ 0 goto NOLINE
if !ecmd1! GTR !line! goto NOLINE
echo.
if exist "%tempfile%.1" del "%tempfile%.1" /f
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
if !line! LSS !ecmd1! echo %%i>>"%tempfile%.1"
if !line! GTR !ecmd1! echo %%i>>"%tempfile%.1"
)
if exist "%tempfile%" del "%tempfile%" /f
move "%tempfile%.1" "%tempfile%"
goto EDITCUR

:LEDIT
if "!filename!"=="" goto NOPEN
if !ecmd1! LEQ 0 goto NOLINE
if !ecmd1! GTR !line! goto NOLINE
echo.
if exist "%tempfile%.1" del "%tempfile%.1" /f
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
if !line! EQU !ecmd1! echo !ecmd1!: %%i
)
set /p cLine="!ecmd1!: "
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
if !line! LSS !ecmd1! echo %%i>>"%tempfile%.1"
if !line! EQU !ecmd1! echo ^%cLine%>>"%tempfile%.1"
if !line! GTR !ecmd1! echo %%i>>"%tempfile%.1"
)
if exist "%tempfile%" del "%tempfile%" /f
move "%tempfile%.1" "%tempfile%"
goto EDITCUR

:CREATENEW
echo.
echo Creating text - !filename!
echo.
set /a line=0
if exist "%tempfile%" del "%tempfile%" /f
set editstate=CREATE_NEW
:CRTPARA
set /a line=!line!+1
set /p cLine="%line%: "
if "%cLine%"=="%ctrcmd%" goto CONTROL
echo ^%cLine%>>"%tempfile%"
goto CRTPARA

:EDITOLD
if not exist "!filename!" (
echo File '!filename!' does not exist.
goto CONTROL
)
if exist "%tempfile%" del "%tempfile%" /f
for /f "tokens=*" %%i in (!filename!) do echo %%i>>"%tempfile%"
:EDITCUR
echo.
echo Editing text - !filename!
echo.
set /a line=0
for /f "tokens=*" %%i in (%tempfile%) do (set /a line=!line!+1
echo !line!: %%i)
goto CONTROL

:EOF
if exist "%tempfile%" del "%tempfile%" /f
set tempfile=
set ctrcmd=
set filename=
set editstate=
set line=
set cLine=
set ecmd=
set ecmdf=
set ecmd1=


[ Last edited by ylide on 2010-4-2 at 10:56 ]
Floor 58 Posted 2010-04-09 21:28 ·  中国 湖南 怀化 电信
新手上路
Credits 8
Posts 3
Joined 2010-02-02 21:02
16-year member
UID 159988
Gender Male
Status Offline
There is one under DOS with only 8K, contact me if you want. xcgxcg2@126.com
Floor 59 Posted 2010-04-11 22:04 ·  中国 河北 保定 电信
新手上路
Credits 10
Posts 5
Joined 2010-04-10 21:47
16-year member
UID 164274
Gender Male
Status Offline
Learning
Floor 60 Posted 2010-04-14 10:34 ·  中国 北京 光环新网电信数据中心
新手上路
Credits 2
Posts 1
Joined 2010-04-13 11:18
16-year member
UID 164470
Gender Male
Status Offline
Thanks, just about to use it.
Forum Jump: