0

I have a batch file script as:

for %%f in (Y:\Data\Retail\Kroger\Development\ashwin\2022-06-01\*) do (

@echo %%f
set @outputfile="%%f~"
echo %@outputfile%

echo "Y:\DataProcessing\Templates\InHouse Utilities\PsCodeLibrary\BMC\7za.exe" e "%%f" -o%@outputfile%
)

When I run the batch file value in, set @outputfile="%%f~" is clearly seen:

enter image description here

but the statement echo %@outputfile% is not being printed. I don't know why its not being printed.

enter image description here

It was also expected to also come after this part -o%@outputfile%. What I see is:

enter image description here

I looked for Ans in "https://stackoverflow.com/questions/19448522/batch-file-set-variable-not-working" but it didnt worked. Why is the variable outputfile not working?

0 Answers0