REM YTD Parameters***************
REM Set a=$({bdty})
REM Set b=$({toda})
ASK a "Enter a start date in the format mmddyyyy"
ASK b "Enter an end date in the format mmddyyyy"
MESSAGEBOX d ! YesNoCancel 2 "Do you want to run for an individual portfolio?"
Shell IF "%d" == "cancel" GOTO end
shell IF NOT "%d" == "No" GOTO portfolio
REM SET c=@BIPortfolios
:portfolio
Ask c "Enter Portfolio Short Code; Default is @BIPortfolios"
REPRUN -mComm_505 -p%c -x "-b%a %b" -vs -t\\cca.local\data\company\trading\commissions\_Quick\%c_Commissions_%a-%b
:end
MESSAGEBOX a ? yesno "This script restores a log file. Are you sure you want to continue?"
SHELL IF NOT "%a" == "yes" GOTO end
SHELL IF EXIST C:\MyLog.txt EXIT 1
IF ERRORLEVEL 1 GOTO restore
GOTO end
:restore
SHELL COPY C:\MyLog.txt D:\MyLog.txt
:end