12 lines
445 B
PowerShell
12 lines
445 B
PowerShell
# 设置要修改的文件路径
|
|
$filePath = "D:\Project\substation\src\YunDa.Util\VideoSurveillanceAdapter\VideoHelper\VideoCommonHelper.cs"
|
|
|
|
# 读取文件内容
|
|
$fileContent = Get-Content $filePath
|
|
|
|
# 替换 ProcessNumStr 常量的值为 "32"
|
|
$newContent = $fileContent -replace 'public const string ProcessNumStr = "32";', 'public const string ProcessNumStr = "64";'
|
|
|
|
# 将修改后的内容写回文件
|
|
Set-Content $filePath $newContent
|