Suppose there is an .ini file called forTest.ini, with contents roughly like this:
----------------------------------------------------------
aaaText=a content a content a content a content
bbbText=b content b content b content b content
......
----------------------------------------------------------
Here, the content of “a content a content a content a content” is variable
What I want to do:
1. First, “Set /p input=Please enter content:”
2. First check whether the file contains the line “aaaText=...”
3. If it exists, then change the content after “aaaText=” to “%input%”
4. If it does not exist, then insert “aaaText=%input%” on the line after “”
[ Last edited by NEXT on 2010-9-22 at 14:28 ]
----------------------------------------------------------
aaaText=a content a content a content a content
bbbText=b content b content b content b content
......
----------------------------------------------------------
Here, the content of “a content a content a content a content” is variable
What I want to do:
1. First, “Set /p input=Please enter content:”
2. First check whether the file contains the line “aaaText=...”
3. If it exists, then change the content after “aaaText=” to “%input%”
4. If it does not exist, then insert “aaaText=%input%” on the line after “”
[ Last edited by NEXT on 2010-9-22 at 14:28 ]
