echo off

pushd .\


:: The input file or directory
SET INPUT="%~dp0vault_data\in"


:: The destination directory
SET DESTINATION="%~dp0vault_data\out"


:: The error directory
SET ERRORS="%~dp0vault_data\error"

:: Use cached exported keys "-i %KEYS% is the switch include the filename
::SET KEYS=%~dp0vault_data\keys\client.keys"


:: The credentials configuration.  Check the docs to see the format
:: of this.  The default path it looks for this is ~/.creds/virtru-cli-creds.json
SET CONFIG="%~dp0virtru-creds.json"


:: Path to CSV (only for Mbox)
:: Note- This must include the .csv file name "-x %CSV%" will be the switch
:: SET CSV="%~dp0vault_data\csv\metadata.csv"

:: Writes out console summary to a file upon completion
SET SUM="%~dp0logs\summary.log


:: Runs the command
%~dp0win-x64\virtru.console.exe bulk-decrypt -s %INPUT% -d %DESTINATION% -c %CONFIG% -e %ERRORS% -w %SUM% -n


popd