将C:|Program Files|Avid|DS_v10.5改成E:|Avid|DS_v10.5- @echo off&setlocal enabledelayedexpansion
- reg export "HKLM\SOFTWARE\Avid\CoExistence" $
- (for /f "delims=" %%a in ('type $') do (
- set "str=%%a"
- set "str=!str:C:|Program Files=E:!"
- echo !str!
- ))>$1
- reg delete "HKLM\SOFTWARE\Avid\CoExistence\C:|Program Files|Avid|DS_v10.5" /f
- reg import $1
- del $ $1
复制代码
|