I want to fetch single file from one specific folder, the folder contains only single file , so don't want to use for loop for that . how can I write batch script for that . Below is my sample code but its uses for loop, and i think if their is only single file then why we use for loop.
cd ${p:DownloadArtifacts}\ReleaseNote
for %%# in (*.xlsx) do echo myvalue=%%~nx#
and one more script is
dir /s /p /b "*.xlsx
using this script i cant store the value into variable , please help..