dot before equals in set /p

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Sponge Belly
Posts: 203
Joined: 01 Oct 2012 13:32
Location: Ireland
Contact:

dot before equals in set /p

#1 Post by Sponge Belly » 02 Apr 2013 12:58

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

jeb
Expert
Posts: 972
Joined: 30 Aug 2007 08:05
Location: Germany, Bochum

Re: dot before equals in set /p

#2 Post by jeb » 02 Apr 2013 16:31

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

Sponge Belly
Posts: 203
Joined: 01 Oct 2012 13:32
Location: Ireland
Contact:

Re: dot before equals in set /p

#3 Post by Sponge Belly » 03 Apr 2013 04:39

Hi Jeb!

Thanks for clearing that up for me.

- SB

Post Reply