Hi, I really need to remove the switch /kernel from all the boot.ini files on our network. This switch could be on different lines within the .ini so I need a "find and delete" batch file that will search for the text and just blank it out. Have searched for hours online for this and now have a very sore forehead, so any help would be gratefully received! I plan to deploy this by SMS 2003 if possible. Thanks!
@echo off>boot.new & setlocal enabledelayedexpansion for /f "tokens=*" %%a in (boot.ini) do ( set line=%%a set line=!line:/kernel=! >> boot.new echo !line! ) :: move /y boot.new boot.ini ::------ end not tested!
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.