Determine Yes/No/All string for current locale

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Message
Author
dbenham
Expert
Posts: 2404
Joined: 12 Feb 2011 21:02
Location: United States (east coast)

Re: Determine Yes/No/All string for current locale

#16 Post by dbenham » 29 Oct 2020 17:07

I like it. You might want to include space in the delimiter list if you want the entire word without trailing space.

siberia-man
Posts: 172
Joined: 26 Dec 2013 09:28
Contact:

Re: Determine Yes/No/All string for current locale

#17 Post by siberia-man » 30 Oct 2020 08:49

dbenham wrote:
29 Oct 2020 17:07
You might want to include space in the delimiter list if you want the entire word without trailing space.
Trailing spaces are already trimmed in the separate section of the script. I didn't include the space in the delimiter list because it would be too hard to parse the string. Even more, I am not sure that the existing [(/)] delimiters are 100% reliable. What if they are applicable in the user name (except /)?

Post Reply