Automatic typing for credits - ghost typing

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: batch scipt for credit section..

#16 Post by foxidrive » 15 Jan 2016 08:23

foxidrive wrote:Nice work ShadowThief.

I would rephrase this passage though, as it seems a little odd and inaccurate.

Code: Select all

:: Ordinarily, variables get replaced with their value before the batch script is run.




In case I wasn't clear - it's describing that all variables are fixed and immutable when a batch file is run.

If that were the case then this would not work:
It seems to me like it would confuse the beginners.

Code: Select all

set num=10
set /a num+=1
echo %num%

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

Re: Automatic typing for credits - ghost typing

#17 Post by ShadowThief » 15 Jan 2016 19:01

Yeah, I'm trying to explain it without using the word "expanded" because people new to batch probably won't understand that term (or at least, I didn't at first).

Post Reply