I am new here.
Can someone help me with this.
I have multiple .txt files with data looking something like this:
11 1111 11 1111
""1"" ""22"" ""[23]"" ""5.11""
file names are something like:
filename2341245_32142134.txt
filename24432151_3412354.txt
and etc.
I tried the code below, but the problem I faced was that there is no way to use wildcards for file names.
Code: Select all
@echo off
REM This is to make your program pretty when run
setlocal EnableDelayedExpansion
REM This is to allow for variable editing within the for loop
for /f "delims=" %%A in (flatFILE.txt) do (
REM This loops through each line in flatFILE.txt
REM and performs everything within () to the line
REM which is held in %%A
set a=%%A
echo !a:"=! >>newFile.txt
REM this adds the line to newFile.txt replacing every instance of " with no character
)
thanks