Using filename in variable
Posted: 13 Mar 2015 19:45
I was thinking it will be easy but become a headache
I'm trying to set a variable contains filename like;
But when it comes to call back, even I couldn't test is it set or not like;
I tried many combinations (like an idiot) but none of them work.
Is there a way to handle it?
All bests
Evren
I'm trying to set a variable contains filename like;
Code: Select all
SET %~n1_var=(%~z1)
or
SET /a %~n1_var=(%~z1)
But when it comes to call back, even I couldn't test is it set or not like;
Code: Select all
ECHO "%%~n1_var%"
or
ECHO "%~n1_var%"
I tried many combinations (like an idiot) but none of them work.
Is there a way to handle it?
All bests
Evren