Hi, I want to find out if a file contain the following strings:
set CMP_DATA_INBND_DIR=C:\h\csscs\data\commi\tmp_queue
set CMP_DATA_OUTBND_DIR=C:\h\CMP\data\outbound
set JAVA_HOME=C:\h\COTS\JAVA2\1.3
set CSSCS_DATA=C:\h\csscs\data
and if not to add them to the file. So if the first three strings exist but not the fourth then add the fourth string. I was thinking that this might need a hash. What do you thinks? --thanks
set CMP_DATA_INBND_DIR=C:\h\csscs\data\commi\tmp_queue
set CMP_DATA_OUTBND_DIR=C:\h\CMP\data\outbound
set JAVA_HOME=C:\h\COTS\JAVA2\1.3
set CSSCS_DATA=C:\h\csscs\data
and if not to add them to the file. So if the first three strings exist but not the fourth then add the fourth string. I was thinking that this might need a hash. What do you thinks? --thanks