|The below batch file is designed to generate variables which are used to identify directory paths and execute scripts. I am a novice at batch programming and I need to insert the BOLD string at a specific line (Ex. Line 16) of the BOLD/Italic file so that the log file is created before scripts within the target file are run:|
set /p env=Enter the environment to run STORE* scripts for:
set /p pw=Enter the PS password for the environment to run STORE* scripts for:
set /p logdir=Enter the update, patch, etc, that the scripts are being run for:
echo SET LOG E:\PSFT\CA\%env%\out\%logdir%\STOREPT.LOG; >> E:\PSFT\HRTRN\src\cbl\base\STOREPT.DMS
Title Run STORE* Scripts for %env%
ECHO This script will run the required STORE* scripts for %env%.
ECHO If logs are needed for review, they can be found here:
E:\PSFT\%env%\bin\client\winx86\psdmtx.exe -CT MICROSFT -CS PSFTAPP -CD %env% -CO PS -CP %pw% -SS NO -SN NO -FP
Can anyone help with this?