Search found 3 matches

by GCRaistlin
29 Aug 2019 10:49
Forum: DOS Batch Forum
Topic: Replace "!" in a variable value when delayed expansion is on
Replies: 7
Views: 10162

Re: Replace "!" in a variable value when delayed expansion is on

jeb wrote:
29 Aug 2019 06:10
No it's not possible to use delayed expansion to replace a single bang, only when the bang is precede with other charactets.
What is "bang"? And I don't understand the last part - how preceding with other characters can change the situation?
by GCRaistlin
29 Aug 2019 01:39
Forum: DOS Batch Forum
Topic: Replace "!" in a variable value when delayed expansion is on
Replies: 7
Views: 10162

Re: Replace "!" in a variable value when delayed expansion is on

Sorry I wasn't precise, I was seeking for the way to replace "!" using !-expansion. call set works, but its perfomance is just terrible. Anyway, thanks for the trick with doubling the quotes.
by GCRaistlin
28 Aug 2019 05:37
Forum: DOS Batch Forum
Topic: Replace "!" in a variable value when delayed expansion is on
Replies: 7
Views: 10162

Replace "!" in a variable value when delayed expansion is on

Is there a way to replace every exclamation mark in a string when delayed expansion is on?