I got an error when i run my code. Its like i got a textfile in C:\Users\Administrator\Desktop\ComOrg and in, it has a sentence in there and i need to change the value of that word
Like: Run: The word inside the textfile here Enter an input [R]-Replace [D]-Delete :
if i click R
Enter the word that you want to replace :
lets say i type "Word" and if i type the word
Enter the word: the word the you will replace
Output = Change the value of the word in a sentence
Here's my code:
@echo off
setlocal enabledelayedexpansion
SET /P _inputname= Please enter "1" to view the text :
if "%_inputname%"=="1" type "C:\Users\Administrator\Desktop\ComOrg\Sentence.txt "
echo off
echo off
SET /P _name= Please enter an Input [A]-ERASE [B]-DELETE :
IF "%_inputname%"=="A" SET /P _inputname= Pick a word the you want to replace :
IF "%_name%"=="love" SET /P _inputname= Type the word :
echo I %_name% batch script
@echo I %_name% batch script > C:\Users\Administrator\Desktop\ComOrg\Sentence.txt
endlocal