Can we pass a variable in for loop as in below example: @ECHO off SETLOCAL ENABLEDELAYEDEXPANSION set /A counter=6 echo !counter! for /f "skip=!counter! tokens=1-18 delims=]" %%A in ...
I dumped all the physical network GUIDs to a file via: wmic nic where "PhysicalAdapter = 'TRUE'" get GUID > networkAdapterGUIDs.txt When I try to read the file and echo out its contents nothing ...
why does this work for X in A* ; do cp $X/output.txt output/$X.txt ; done but not this cp A*/output.txt output/A*.txt For copying the output.txt file from multiple folders called A1, A2, A3, ...