How do I fix .bat open and then close?
Moderator: DosItHelp
-
- Posts: 4
- Joined: 30 Jul 2018 10:13
How do I fix .bat open and then close?
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?
That is a pretty broad question. What programming language did you write the program in? What version of DOS are you using?TheDosMaster wrote: ↑31 Jul 2018 07:44I 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!
-
- Posts: 4
- Joined: 30 Jul 2018 10:13
Re: How do I fix .bat open and then close?
I think I am running DOS 6.22.Squashman wrote: ↑31 Jul 2018 08:08That is a pretty broad question. What programming language did you write the program in? What version of DOS are you using?TheDosMaster wrote: ↑31 Jul 2018 07:44I 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?
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
-
- Posts: 4
- Joined: 30 Jul 2018 10:13
Re: How do I fix .bat open and then close?
Re: How do I fix .bat open and then close?
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
Steffen
-
- Posts: 4
- Joined: 30 Jul 2018 10:13
Re: How do I fix .bat open and then close?
Well, I was making a menu...aGerman wrote: ↑31 Jul 2018 13:50Okay 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
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: How do I fix .bat open and then close?
...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.
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?
Hey "Dos Master", I strongly suggest you to read this post...TheDosMaster wrote: ↑27 Aug 2018 09:00Well, I was making a menu...aGerman wrote: ↑31 Jul 2018 13:50Okay 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
Antonio