In my batch file I have the script:
set myVar=/someLabel:"%1"
I want to write the if
command for the above script that have the same meaning as below.
if <%1 not null> {
myVar=/someLabel:"%1"
}
else
{
myVar=""
}
How can I do this? Please help!
[Edit]
The answer from user hfs
works for me.
The full details of the if
and set
command is listed by user Dave Anderson
.
Thank you very much all of you!