Skip to main content

Hi Team,

i have a below script for encrypt the files ( saved the script file as CMD.bat )

 

@echo off
:: Navigate to the directory containing Encrypt_decrypt.exe
cd C:\PPK\Com

:: Set the TOTP code
set TOTP_CODE=99999

:: Create a temporary file with the TOTP code
echo %TOTP_CODE%> temp_input.txt

:: Provide the input file to the encryption command
Encrypt_decrypt.exe 9192939495 "D:\RPA\Temp\New file.zip" enc < temp_input.txt

:: Remove the temporary file
del temp_input.txt

pause

from above script i need pass the “99999” (which i can store in string) under parameter ( because the otp is dynamic),

How can i achieve this ?

 



 

Be the first to reply!

Reply