How do I fix .bat open and then close?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
TheDosMaster
Posts: 4
Joined: 30 Jul 2018 10:13

How do I fix .bat open and then close?

#1 Post by TheDosMaster » 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 :D if I had some help :?: thanks!

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: How do I fix .bat open and then close?

#2 Post by Squashman » 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 :D 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?

TheDosMaster
Posts: 4
Joined: 30 Jul 2018 10:13

Re: How do I fix .bat open and then close?

#3 Post by TheDosMaster » 31 Jul 2018 08:33

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 :D 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.

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: How do I fix .bat open and then close?

#4 Post by aGerman » 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

TheDosMaster
Posts: 4
Joined: 30 Jul 2018 10:13

Re: How do I fix .bat open and then close?

#5 Post by TheDosMaster » 31 Jul 2018 12:47

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...

aGerman
Expert
Posts: 4678
Joined: 22 Jan 2010 18:01
Location: Germany

Re: How do I fix .bat open and then close?

#6 Post by aGerman » 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

TheDosMaster
Posts: 4
Joined: 30 Jul 2018 10:13

Re: How do I fix .bat open and then close?

#7 Post by TheDosMaster » 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...

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: How do I fix .bat open and then close?

#8 Post by ShadowThief » 27 Aug 2018 10:46

...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.

Aacini
Expert
Posts: 1914
Joined: 06 Dec 2011 22:15
Location: México City, México
Contact:

Re: How do I fix .bat open and then close?

#9 Post by Aacini » 27 Aug 2018 11:42

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

Post Reply