Page 1 of 1
How do I fix .bat open and then close?
Posted: 31 Jul 2018 07:44
by TheDosMaster
I need some help here, so I made a DOS program and sadly I deleted it because it din't work so can I have some help because when I open it, it just closes! So it will be great

if I had some help

thanks!
Re: How do I fix .bat open and then close?
Posted: 31 Jul 2018 08:08
by Squashman
TheDosMaster wrote: ↑31 Jul 2018 07:44
I need some help here, so I made a DOS program and sadly I deleted it because it din't work so can I have some help because when I open it, it just closes! So it will be great

if I had some help

thanks!
That is a pretty broad question. What programming language did you write the program in? What version of DOS are you using?
Re: How do I fix .bat open and then close?
Posted: 31 Jul 2018 08:33
by TheDosMaster
Squashman wrote: ↑31 Jul 2018 08:08
TheDosMaster wrote: ↑31 Jul 2018 07:44
I need some help here, so I made a DOS program and sadly I deleted it because it din't work so can I have some help because when I open it, it just closes! So it will be great

if I had some help

thanks!
That is a pretty broad question. What programming language did you write the program in? What version of DOS are you using?
I think I am running DOS 6.22.
Re: How do I fix .bat open and then close?
Posted: 31 Jul 2018 10:16
by aGerman
TheDosMaster wrote: ↑31 Jul 2018 08:33
I think I am running DOS 6.22.
If you run a DOS operating system you would certainly know the version rather than guessing it. Just to make sure - don't you run Windows?
Steffen
Re: How do I fix .bat open and then close?
Posted: 31 Jul 2018 12:47
by TheDosMaster
aGerman wrote: ↑31 Jul 2018 10:16
TheDosMaster wrote: ↑31 Jul 2018 08:33
I think I am running DOS 6.22.
If you run a DOS operating system you would certainly know the version rather than guessing it. Just to make sure - don't you run Windows?
Steffen
Well I run windows 98 even thought it's the worst...
Re: How do I fix .bat open and then close?
Posted: 31 Jul 2018 13:50
by aGerman
Okay that means your command interpreter is command.com and command extensions are not available for you. Now it would be really of interest to see the Batch script that closed erroneously (or at least the piece of code that reproduces this behavior). Otherwise I don't see any chance to help you because anything else would be like crystal-ball gazing.
Steffen
Re: How do I fix .bat open and then close?
Posted: 27 Aug 2018 09:00
by TheDosMaster
aGerman wrote: ↑31 Jul 2018 13:50
Okay that means your command interpreter is command.com and command extensions are not available for you. Now it would be really of interest to see the Batch script that closed erroneously (or at least the piece of code that reproduces this behavior). Otherwise I don't see any chance to help you because anything else would be like crystal-ball gazing.
Steffen
Well, I was making a menu...
Re: How do I fix .bat open and then close?
Posted: 27 Aug 2018 10:46
by ShadowThief
...and then?
But seriously, usually when scripts immediately close after you open them, it's because they broke and threw an error that you weren't fast enough to see, which is why you should always run the script from the command prompt instead of double-clicking it.
Re: How do I fix .bat open and then close?
Posted: 27 Aug 2018 11:42
by Aacini
TheDosMaster wrote: ↑27 Aug 2018 09:00
aGerman wrote: ↑31 Jul 2018 13:50
Okay that means your command interpreter is command.com and command extensions are not available for you. Now it would be really of interest to see the Batch script that closed erroneously (or at least the piece of code that reproduces this behavior). Otherwise I don't see any chance to help you because anything else would be like crystal-ball gazing.
Steffen
Well, I was making a menu...
Hey "Dos Master", I strongly suggest you to read
this post...
Antonio