Command "edlin"

  • Thread starter Thread starter Tuong Vi
  • Start date Start date
T

Tuong Vi

Please help me.
I want to run command "edlin.exe" to edit a text file and
I want to do this by a batch file. I wrote it as follows:

@echo off
edlin <path>\*.*
5 \* I want to edit 5th line.
echo .......... \* My new line
e \* End
q \* Quit

But screen only appears:
"End of input file
*"
then stop, not continuing with sequent subcommands, so I
can't finish my work. I use WinXP SP1 Pro. How must I do
edit a file by using command? Thank you very much.
 
Tuong said:
Please help me.
I want to run command "edlin.exe" to edit a text file and
I want to do this by a batch file. I wrote it as follows:

@echo off
edlin <path>\*.*
5 \* I want to edit 5th line.
echo .......... \* My new line
e \* End
q \* Quit

But screen only appears:
"End of input file
*"
then stop, not continuing with sequent subcommands, so I
can't finish my work. I use WinXP SP1 Pro. How must I do
edit a file by using command? Thank you very much.

You need to use the /B switch. Go to a command prompt and edlin /? to
see the syntax.

--
Ronnie Vernon
Microsoft MVP
Windows Shell/User

Please reply to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
 
Back
Top