Thanks for a quick reply - but it didn't work.
the screen is clear except for the 'choice menu'
Rick
"Sjouke Burry" <burrynulnulfour@[EMAIL PROTECTED]
> wrote in message
news:47f42241$0$25474$ba620dc5@[EMAIL PROTECTED]
> Rick wrote:
>> When I use it ( The Menu batch file) with any prog except 'edit.com'
the
>> menu doesn't reappear when you close the text editor.
>> Unfortunately a lot of my text files are 400k+ and edit won't open
them.
>> Type won't work because the batch file won't accept the '| more'
command
>> I've tried Word for DOS, WP5.1 for DOS, Vi, Elvis, vile. Anyone know
of
>> a basic text editor similar to edit.com that opens large text files,
or
>> how I can alter the batch file so that it redisplays the menu. I think
>> that it is only edit.com that totally clears the screen when it has
>> finished.
>>
>>
>>
>> Rick
>>
>>
>> "Rick" <richard.cheetham80@[EMAIL PROTECTED]
> wrote in message
>> news:7wTIj.34446$jH5.29681@[EMAIL PROTECTED]
>>> Thanks all - it now works.
>>>
>>> Can anyone explain what exactly these lines do?
>>>
>>> if [%n%]==[b] echo set n=c>>_2.bat
>>> if [%n%]==[b] echo if errorlevel 2 if not errorlevel 3 edit %m%
>>> >>_1.bat
>>> edit means open edit.com, but the rest I don't know.
>>>
>>> Rick
>>>
>>>
>>>
>>>
>>>
>>> "Sjouke Burry" <burrynulnulfour@[EMAIL PROTECTED]
> wrote in message
>>> news:47f3f16d$0$25498$ba620dc5@[EMAIL PROTECTED]
>>>> Rick wrote:
>>>>>> Which OS do you use?
>>>>> Dos 6.21
>>>>>
>>>>> Error seems to be on the choice line,
>>>>> it displays :-
>>>>> TESTM>choice /n /c:abc0 [a-c, 0 for exit]:
>>>>> Bad command or file name
>>>>> TESTM>if not errorlevel 27 goto loop
>>>> Choice is a program,(CHOICE.COM) and if that is not found in the
>>>> path, it fails.
>>>> It is part of dos6.22, and its help says from dos4.00 up
>>>> Before that Norton utilitys had something like it.
>>>> There is also a version in c_snippets.
>>>> Also google turned up for the below search phrase:
>>>> choice.com download
>>>> a lot,reference 2 looks oke.
>>>
>>
>>
> Try : call program.exe(or com)......etc.........
> to make sure you get back to the batch file, when "program" exits.
> The call in front opens a new shell for the program, and
> ensures return to the batch file.


|