标题:
[文本处理]
查找字符所在行,并在找到的行尾添加字符
[打印本页]
作者:
zhoubin
时间:
2021-8-1 16:45
标题:
查找字符所在行,并在找到的行尾添加字符
本帖最后由 zhoubin 于 2021-8-1 16:49 编辑
如题:
在批处理卸载.cmd中,查找字符
del %0 >NUL 2>NUL&cd ..&rd "%~dp0" >NUL 2>NUL&if not exist "%cd%\*" reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" /f /v "C:\\Program Files\\Icsoft\\"
并在找到的行,行尾添加
& reg delete "HKU\S-1-5-21-2955475268-2234008017-1310366641-1000\Software\Icsoft" /f
添加后的卸载.cmd效果
del %0 >NUL 2>NUL&cd ..&rd "%~dp0" >NUL 2>NUL&if not exist "%cd%\*" reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders" /f /v "C:\\Program Files\\Icsoft\\" & reg delete "HKU\S-1-5-21-2955475268-2234008017-1310366641-1000\Software\Icsoft" /f
本人小白,不会写,谢谢各位了!
欢迎光临 批处理之家 (http://bbs.bathome.net/)
Powered by Discuz! 7.2