Batch Script to delete '?' character in txt

August 30, 2009 at 19:29:09
Specs: Windows XP, 2gb
Hi,

I'm trying to figure out the script to delete the '?' character that is randomly appearing in numerous places in a txt file database I have.

Any help would be much appreciated.
:)


See More: Batch Script to delete ? character in txt

Report •


#1
August 30, 2009 at 20:33:58
@echo off > newfile & setLocal enableDELAYedexpansion

for /f "tokens=* delims= " %%a in (myfile) do (
set str=%%a
set str=!str:?=!
>> newfile echo !str!
)


=====================================
If at first you don't succeed, you're about average.

M2


Report •

#2
August 30, 2009 at 21:12:51
perfect!

Thank you


Report •

Related Solutions


Ask Question