ya he ajustado el bat a mis necesidades:
Código:
@Echo OFF & SetLocal EnableDelayedExpansion
cd\
cd %1
Set "inputFile=.\%1.PRG"
Set /A "fileCount=1"
Echo [+] ".\%1%fileCount%.PRG"
For /F "UseBackQ Tokens=* Delims=" %%a In ("%inputFile%") Do (
Set "line=%%~a"
Echo !line!
(Echo !line!)>>".\%1!fileCount!.PRG"
If /I "!line:~0,4!" EQU "N490" (
Set /A "fileCount+=1"
Echo+
Echo [+] ".\%1!fileCount!.PRG"
)
)
Pause&Exit /B 0
Ahora de los archivos nuevos creados necesito eliminar los comienzos de línea
N0,N1,N2,N3.....N490.
llevo varias horas intentándolo y solo he conseguido eliminar la N, con esto:
Código
por favor pido ayuda, soy muy novato.