Share this post

Link to post

Share on other sites

99ojo 0

99ojo 0

#include <file.au3>; !! there are no error handlings in this code !!$source="c:\csv";list csv files in $source into array, for more details see helpfile$arfiles=_FileListToArray($source,"*.csv",1);loop over array, $arfiles [0] = Number of Files\Folders returned, so we start from 1For$i=1ToUBound($arfiles)-1;search & replace$szFile=$source&"\"&$arfiles[$i]$szText=FileRead($szFile,FileGetSize($szFile))$szText=StringReplace($szText,@CRLF,"")FileDelete($szFile)FileWrite($szFile,$szText)Next