How would you use this as a loading screen for another action that happens in the background?
that happens in the background? - Oohh, I don't think so lol. Batch is not really suited for multi-threading. A scripting language like Perl is, but not batch. Thus this would be more of a delay if you used it as a loading screen, just for the visual :)
Because you'd have to display the "Message..." before starting the app through the command line. The way I would attempt it though:
Code:
CALL :WaitDisplay "Please Wait" %%G
Check param %2 in the :WaitDisplay portion for if it's equal to 1 (the value of the first in the batch for loop). And if so, then start the program.
Note: I haven't tested this, but you could try it :) See what you come up with. I wouldn't do it directly in the loop through checking for %%G though because i'm pretty positive that this will not work, but again, I haven't tested anything yet. I could if you wanted, and were struggling, but determined enough to get this working? lol
~Ace