consegui usando assim , mais o problema e q c coloco 2 ou mais arquivos para alterar , o ultimo sempre cria um novo .txt com muitas copias
 
	Set /p IP=IP :
 
	setlocal enabledelayedexpansion 
	for /f "tokens=* delims=" %%x in ('type CommonLoc.cfg') do ( 
	set linha=%%x 
	set linha=!linha: ServerIP= %IP%! 
	call :show !linha! 
	) 
	goto:eof 
	:show  
	echo %* >> CommonLoc.txt 
	to:eof
 
	setlocal enabledelayedexpansion 
	for /f "tokens=* delims=" %%x in ('type IpList.dat') do ( 
	set linha=%%x 
	set linha=!linha:ServerIP=%IP%! 
	call :show !linha! 
	) 
	goto:eof 
	:show  
	echo %* >> IpList.txt 
	to:eofa