I have the following batch file script that I trying to run that will fetch my password to my clipboard. I have tried multiple different methods but I can't seem to get it to work.
set "passwd=p455code&"
echo %passwd%|clip
When I run it I get the following error:
C:\aliases>set "passwd=p455code&"
| was unexpected at this time.
Please let me know what I am doing wrong here.