What is "bang"? And I don't understand the last part - how preceding with other characters can change the situation?
Search found 3 matches
- 29 Aug 2019 10:49
- Forum: DOS Batch Forum
- Topic: Replace "!" in a variable value when delayed expansion is on
- Replies: 7
- Views: 11234
- 29 Aug 2019 01:39
- Forum: DOS Batch Forum
- Topic: Replace "!" in a variable value when delayed expansion is on
- Replies: 7
- Views: 11234
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.
- 28 Aug 2019 05:37
- Forum: DOS Batch Forum
- Topic: Replace "!" in a variable value when delayed expansion is on
- Replies: 7
- Views: 11234
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?