Skip to main content
Question

PASS VARIABLE UNDER BATCH FILE


Forum|alt.badge.img+5
  • Navigator | Tier 3
  • 20 replies

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 ?

 



 

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings