Cannot display a large record(Ex:more than 5000) characters

Une difficulté, une précision posez vos questions

Modérateur : WIN32-[GG]

Répondre
bti2013
Batcheur occasionnel
Messages : 1
Enregistré le : 21 oct. 2013 21:14

Cannot display a large record(Ex:more than 5000) characters

Message par bti2013 »

Hi,

I've a file with record exceeding 5000 characters i use a .bat file to read the records but i cannot. I give the file name as a parameter to the . bat and the echo !temp! or echo %%a are empty . Is there any size limitation on the variable used in FOR or echo commands ?

@echo off
SETLOCAL ENABLEEXTENSIONS
SETLOCAL ENABLEDELAYEDEXPANSION set filename=nothing

SET i=0

for /f "usebackq tokens=*" %%a IN (%~1) DO (

echo %%aa set temp=%%~a
echo !temp!
echo !temp:~0,1000!>>a

)

Thanks for your help.
Répondre