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.
1.bat
@echo off
IF NOT %1!==/go! %0 /go 1>D:\Scripts\Logs\%~n0_%date:~4,2%%date:~7,2%%date:~10,4%.log 2>&1start D:\Scripts\CIDBSyncDirCleanUp.bat
:: Replace the versions in the Db Sync config files
set /p BuildVersion="Please type DBversion# to replace in DB Sync files: "
Untested, but I'm drunk. >CON set /p BuildVersion="Please type DBversion# to replace in DB Sync files: "
Thank You. It worked..
