Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: Menu?
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 22 Topic 489 of 500
Post > Topic >>

Re: Menu?

by "Rick" <richard.cheetham80@[EMAIL PROTECTED] > Apr 2, 2008 at 03:08 PM

Sorry misunderstood how to use the files.

Now all I get is bad command or file name displayed continously.

Running it with the 'command /y /k gives '

It goes throuigh every line once then displays :-

[a] 08thes~1.txt
[Y/N]?nu1 1 09sata~1.txt  (on pressing Y the nu changes toYu)
echo off [Y/N]?Y
if [1]==[1] goto :sub1 [Y/N]?Y
goto :sub1 [Y/N]
set m=09sata~1.txt [Y/N]?Y
_2.bat [Y/N]?Y
Y [Y/N]?Y
Bad command or file name
set n=b [Y/N]?Y
menu1 2 [Y/N]?Y
echo off [Y/N]?Y

then runs through every line again until it comes to that line 'Y [Y/N]? 
then gives bad command or file name.

Thanks


Rick



"Herbert Kleebauer" <klee@[EMAIL PROTECTED]
> wrote in message 
news:47F34062.F19C5D3A@[EMAIL PROTECTED]
> Rick wrote:
>
>> Those batch file the other guy wrote just emptied themselves. Think the

>> clue
>> was in the If exist then del lines?
>
>
> Which OS do you use? The batch doesn't work in W2k/XP (there is mo
choice 
> command),
> but as I said, with this OSs it is trivial. The posted code was tested 
> with
> Win98 and DOS 6.
>
> Make a new directory, for example c:\test and save the posted code as 
> txtmenu.bat
> in this directory. Then create a few text files (text1.txt, text2.txt, 
> text3.txt).
> CD to this directory and type "dir", you should get:
>
>
> TXTMENU  BAT         3.364 02.04.08    9:04
> TEXT1    TXT             3 02.04.08    9:04
> TEXT2    TXT             3 02.04.08    9:05
> TEXT3    TXT             3 02.04.08    9:05
>        6 Datei(en)          3.373 Byte
>                       401.801.216 Byte frei
>
>
> Now type "txtmenu" and you should get:
>
> C:\TEST> textmenu
> [a]  TEXT1.TXT
> [b]  TEXT2.TXT
> [c]  TEXT3.TXT
>
> [a-z, 0 for exit]:
>
> If you press "b" the file TEXT2.TXT is opened with the editor.
>
> If it doesn't work for you, please post a screen shoot of the output.
 




 22 Posts in Topic:
Menu?
"Rick_C" <ri  2008-03-29 20:14:20 
Re: Menu?
Jawade <Henk_Jawade@[E  2008-03-29 21:34:56 
Re: Menu?
ArarghMail803NOSPAM@[EMAI  2008-03-29 18:42:58 
Re: Menu?
Herbert Kleebauer <kle  2008-03-30 01:53:24 
Re: Menu?
ak621@[EMAIL PROTECTED]   2008-04-01 12:51:11 
Re: Menu?
"Rick" <rich  2008-04-02 00:31:43 
Re: Menu?
Herbert Kleebauer <kle  2008-04-02 10:14:26 
Re: Menu?
"Rick" <rich  2008-04-02 15:08:39 
Re: Menu?
Herbert Kleebauer <kle  2008-04-02 17:48:21 
Re: Menu?
"Rick" <rich  2008-04-02 20:08:19 
Re: Menu?
Sjouke Burry <burrynul  2008-04-02 22:49:50 
Re: Menu?
"Rick" <rich  2008-04-02 22:11:15 
Re: Menu?
"Rick" <rich  2008-04-03 00:07:36 
Re: Menu?
Sjouke Burry <burrynul  2008-04-03 02:18:09 
Re: Menu?
"Rick" <rich  2008-04-03 00:24:40 
Re: Menu?
Herbert Kleebauer <kle  2008-04-03 11:07:36 
Re: Menu?
"Rick" <rich  2008-04-03 22:06:20 
Re: Menu?
Herbert Kleebauer <kle  2008-04-04 00:52:11 
Re: Menu?
"Rick" <rich  2008-04-03 23:47:26 
Re: Menu?
Herbert Kleebauer <kle  2008-04-04 13:55:22 
Re: Menu?
Robert Riebisch <Rober  2008-04-04 17:14:41 
Re: Menu?
ak621@[EMAIL PROTECTED]   2008-04-04 16:52:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 13:35:24 CDT 2008.