Hi, I didn't know this forum existed until today, how awesome!!
I'm making a vb6 program which creates and shell executes a batch file.
The batch file has four commands, three of which are to a game engine required to compile maps.
The fourth command is to a pop-up exe file I've created to alert the user when the whole process has completed.
It all works great except when one of the three map compile processes hit a major compile error and the CMD console (DOS box) closes before processing any of the remaining commands.
I would like to place "If" and "GoTo" conditions to each of the three process commands so that it will go through all four commands normally but also GoTo the fourth command on error.
Something like...
If commandline1 errs goto commandline 4
If commandline2 errs goto commandline 4
If commandline3 errs goto commandline 4
commandline 4 (sends pop-up alert)
Pure and simple, please. I have searched for this all day and everything I have found has gone clear over my head.
I don't need "If Exists", I know they do (besides I can call that in vb), but most search results I have read on batch file "If"s are "If Exists".
I do apologize if this is in the wrong forum and understand if it is moved.
I just saw "DOS" and thought DOS command console. It's actually a Windows/DOS topic. A little from column A, a little from column B.
Go easy with the guru lingo, I'm old, a long way from the good ol' DOS days and it's my first time here.
Thank you.