PDA

View Full Version : Command "edlin"


Tuong Vi
August 11th 03, 01:28 PM
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.

Ronnie Vernon MVP
August 11th 03, 02:09 PM
Tuong Vi wrote:
> 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.

Google