Search found 2 matches

by dosthebos
10 Jan 2023 16:38
Forum: DOS Batch Forum
Topic: Escaping special characters in a variable in for loop
Replies: 3
Views: 9344

Re: Escaping special characters in a variable in for loop

Special handling of the environment state is required to preserve Exclamation characters. Variable assignment must occur before DE is enabled, DE then gets toggled on and of during the loop, with an additional for loop required to tunnel the concatenation variable across the endlocal. Thanks so muc...
by dosthebos
07 Jan 2023 17:07
Forum: DOS Batch Forum
Topic: Escaping special characters in a variable in for loop
Replies: 3
Views: 9344

Escaping special characters in a variable in for loop

Hi, I'm trying to create a batch file where I loop through a directory of audio files to create a variable holding all filenames wrapped in double quotes. I then pass this variable to foobar2000 to do some tagging. The problem is my audio files can contain ampersands and exclamation marks. For examp...