Page 1 of 1

dot before equals in set /p

Posted: 02 Apr 2013 12:58
by Sponge Belly
Hello All!

I keep coming across lines of code like this:

Code: Select all

<nul set /p ".=some text"


Why is there a dot before the equals sign? What does it do? It doesn’t seem to make any difference whether I leave it in or not. Is it for good luck? Does it keep the bugs away? :-)

Seriously, I presume it’s there for a reason. Someone please enlighten me!

- SB

Re: dot before equals in set /p

Posted: 02 Apr 2013 16:31
by jeb
Hi Sponge Belly,

good question, as far as I know there is no special meaning or behaviour for a dot or any other character here.
You can use any or none.
I only use the dot for aesthetic reasons.

jeb

Re: dot before equals in set /p

Posted: 03 Apr 2013 04:39
by Sponge Belly
Hi Jeb!

Thanks for clearing that up for me.

- SB