|I've tried again and it works. Nothing was wrong, more like user errors. |
I want to change the script to do something else with the same concept. Hope you can help.
I want to remove the # character for all the files in the directory. How can I edit to remove without creating new files? Or is this a neccessary?
Here is what I have so far that I got from this forum. I don't want to have a new file (#) created but if I remove the echo and copy to # it doesn't work
@echo off & setLocal enableDELAYedexpansion
for /f "tokens=* delims= " %%a in ('dir /b AA*.txt') do (
for /f "tokens=* delims= " %%i in (%%a) do (
set /a N+=1
if !N! equ 1 (
echo !front! > #
) else (
echo %%i >> #
copy # %%a