本帖最后由 apang 于 2012-11-16 13:57 编辑
- @echo off
- set "P=%~dp0"
- set "P=%P:\=|%"
- set "P=%P:~,-1%"
- set "V=D:|software|3D|Softimage 2013 SP1|Application|bin"
- reg export "HKLM\SOFTWARE\Wow6432Node\Softimage" "%temp%\$"
- reg delete "HKLM\SOFTWARE\Wow6432Node\Softimage" /f
- (for /f "delims=" %%a in ('type "%temp%\$"') do (
- set "str=%%a"
- setlocal enabledelayedexpansion
- set "str=!str:%V%=%P%!"
- echo,!str!
- endlocal
- ))>"%temp%\$.reg"
- reg import "%temp%\$.reg"
- del "%temp%\$.*"
- pause
复制代码 以管理员权限运行,试一下看 |