批量文本编辑器无法正确编辑

时间:2014-02-22 01:17:41

标签: batch-file text editor

现在我有了这个

@ECHO off
COLOR 1f
SET /p name=What is the name of the file you want to open/name: 
CLS
SET /p type=What type of file do you want to open/make (txt, vbs, etc.): 
CLS
IF EXIST %name%.%type% ( TYPE %name%.%type% )
:begin
SET /p code=
ECHO %code% >> %name%.%type%
GOTO begin
CLS

但是一旦用TYPE命令显示已存在于文件中的文本,我就无法编辑它显示的部分,我只能添加更多。

我该如何解决这个问题?

0 个答案:

没有答案