- May
- 13,117
- 180
In the example below, the first command produces a correct filename. In the second and third, something gets lost in the translation.
Code:
c:\users\vefatica\desktop> dir /b /f *void*
C:\Users\vefatica\Desktop\www.voidtools.com • View forum - Everything.URL
c:\users\vefatica\desktop> do x in /p dir /b /f *void* ( echo %x )
C:\Users\vefatica\Desktop\www.voidtools.com ò View forum - Everything.URL
c:\users\vefatica\desktop> echo %@execstr[dir /b /f *void*]
C:\Users\vefatica\Desktop\www.voidtools.com ò View forum - Everything.URL