|In the batch file I will be capturing the values from user. I also would like to capture the cmd output as a log.|
With the below batch file, the SET statement is written to log and not shown in the CONSOLE.
IF NOT %1!==/go! %0 /go 1>D:\Scripts\Logs\%~n0_%date:~4,2%%date:~7,2%%date:~10,4%.log 2>&1
:: Replace the versions in the Db Sync config files
set /p BuildVersion="Please type DBversion# to replace in DB Sync files: "