1.

Solve : big prob?

Answer»

when i run a batch file the comand window opens up then closes strait away i need help to fix this problem please ☺open up a normal command prompt i.e. from start>run>cmd. then run your batch PROGRAM from there. if it's an error that's forcing an exit the original cmd will catch it. if it's an exit you've left in (i've don that before couldn't work out why it was exiting) then it won't catch it you'll have to look through the batch .

FBThat is normal.
What do you want it to do?
sorry i was assuming it as an error that was forcing the close (assume makes an *censored* of u and me) if it's running to completion with no more INSTRUCTIONS it will exit. to stop this just insert a pause and exit as the last two lines.

FBIt COULD also be something to do with a syntax error. I have had a few similar ISSUES with loops.
Posting your code could help identify the reason.

In general If everything is good, pause will wait for a key press to exit.

Cheers!!To do a complete DEBUG, you can add after every line:

Code: [Select]echo 1
pauseand for the second line, replace it with echo 2 (and so on and so forth).
After that, you you can tell which line is causing the problem, because the next line will cause it to crash.thancks i figured out why

i forgot to put pause at the end



Discussion

No Comment Found