Inserting strings within files...
Posted on 2006-07-09
Actually, the file that needs to be changed is not script1.pl. Its a .bat file: script1.bat. I don't know if that makes any difference. So:
-I have one file called file1.txt
-I have a script called script1.bat
-Within this .bat file, there is this string of text that exists at a certain location (see .bat file below): "value"
-I need a script that will take the string stored in file1.txt and insert it into script1.bat in place of "value", or any string that occupies that place.
-So, if the value in file1.txt is 1234, then I need script1.bat from "value" to "1234"
Here is what's in the .bat file:
C:\footprints\bin\perl\bin\perl C:\FootPrints\bin\mrSetField.pl %%MRID%% "Last 4 SSN" "Value" %%55%%
Thanks in advance for the help.