@echo off
rem 注意备份原文件
set @=有问题联系&set #=Q&set/az=0x53b7e0b4
title %@% +%#%%#% %z%
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy bypass ^
$files=@(dir^|?{('.csv' -eq $_.Extension) -and ($_ -is [System.IO.FileInfo])});^
for($i=0;$i -lt $files.length;$i++){^
write-host $files[$i].FullName;^
$text=[IO.File]::ReadAllText($files[$i].FullName, [Text.Encoding]::Default);^
$text=$text.replace(';',',');^
[IO.File]::WriteAllText($files[$i].FullName, $text, [Text.Encoding]::Default);^
};
echo;%@% +%#%%#% %z%
pause
温馨提示:答案为网友推荐,仅供参考