|Here the script for all seasons, it deletes or replaces a word everywhere it is located on the line.|
The script requires a good knoledge of batch theory, so try
- for /?
- set /?
I am not a script pusher, so as Derek suggested:
STUDY STUDY STUDY STUDY ... don't waste your time.
@echo off & setlocal EnableDelayedExpansion
set /P _file=Enter filename^>
set /P _word1=Enter the word to be canceled or replaced^>
set /P _word2=Type the word for replacement or press Enter^>
type nul > "%_file%.tmp"
for /F "delims=" %%i in ('type "%_file%"') do (
) >> "%_file%.tmp"
move "%_file%.tmp" "%_file%"
message edited by IVO