Sidewinder
I did do as you suggested, but there is nada happening, not even an error message.
I change the command lines.. see below.
There is up to 100 unique files (file1,file2,file3,file4,file5 etc) and each of them has only one of the lines that needs to be changed, but this line can occur several hundreds times in each file.
Only the last line of command "set input=!input:Streetname Char(32)=Stopname Char(90)" occurs in every single file and has to be changed in all files.
Perhaps this explains it better
Regards
@echo off
setlocal enabledelayedexpansion
for /f %%x in ('dir /a:-d /s /b D:\Data\*.txt') do (
for /f "tokens=* delims=" %%i in (%%x) do (
set input=%%i
set input=!input:Symbol ("KundeOrdre_Red.bmp",0,24,0)=Symbol (34,16711680,12)!
set input=!input:Symbol ("KundeOrdre_Skin_PSE2.bmp",0,24,0)=Symbol (34,16760992,12)!
set input=!input:Symbol ("KundeOrdre_Lime_PSE2.bmp",0,24,0)=Symbol (34,13696928,12)!
set input=!input:Symbol ("KundeOrdre_LightBlue_PSE2.bmp",0,24,0)=Symbol (34,46320,12)!
set input=!input:Symbol ("KundeOrdre_LightGreen_PSE2.bmp",0,24,0)=Symbol (34,53373,12)!
set input=!input:Symbol ("KundeOrdre_LightOrange_PSE2.bmp",0,24,0)=Symbol (34,14718208,12)!
set input=!input:Symbol ("KundeOrdre_WineRed_PSE2.bmp",0,24,0)=Symbol (34,12583008,12)!
set input=!input:Symbol ("KundeOrdre_DarkBlue_PSE2.bmp",0,24,0)=Symbol (34,128,12)!
set input=!input:Symbol ("KundeOrdre_L_Magenta_PSE2.bmp",0,24,0)=Symbol (34,16765183,12)!
set input=!input:Symbol ("KundeOrdre_LightRed_PSE2.bmp",0,24,0)=Symbol (34,16736352,12)!
set input=!input:Symbol ("KundeOrdre_LightPurple_PSE2.bmp",0,24,0)=Symbol (34,11559167,12)!
set input=!input:Symbol ("KundeOrdre_Blue.bmp",0,24,0)=Symbol (34,255,12)!
set input=!input:Symbol ("KundeOrdre_Green.bmp",0,24,0)=Symbol (34,65280,12)!
set input=!input:Symbol ("KundeOrdre_Magenta.bmp",0,24,0)=Symbol (34,16711935,12)!
set input=!input:Symbol ("KundeOrdre_Cyan.bmp",0,24,0)=Symbol (34,65535,12)!
set input=!input:Symbol ("KundeOrdre_Brown.bmp",0,24,0)=Symbol (34,8388608,12)!
set input=!input:Symbol ("KundeOrdre_LightYellow.bmp",0,24,0)=Symbol (34,16776960,12)!
set input=!input:Symbol ("KundeOrdre_Purple.bmp",0,24,0)=Symbol (34,8388736,12)!
set input=!input:Symbol ("KundeOrdre_Orange.bmp",0,24,0)=Symbol (34,16741680,12)!
set input=!input:Streetname Char(32)=Stopname Char(90)!
echo !input! >> %%x.chg
)
)
endlocal