I started using a dedicated cmdinit.cmd file for my doskey macros (Windows 7x64).
Macros like
Code: Select all
alias=doskey /macros $Bsort
I've added one macro recently that just doesn't work as expected:
Code: Select all
doskey mac=For /f "tokens$Q4 delims$Q " %%# In ('getmac/V $E$B findstr/I "lan"') Do (echo LAN: %%#)
Executing the macro, I'll receive a message that the "|" can't be processed at that position.
The part after the = sign is valid, i.e.
Code: Select all
For /f "tokens=4 delims= " %%# In ('getmac/V ^| findstr/I "lan"') Do (echo LAN: %%#)
Did I forget anything?
