|In response to the opening post:|
1. Instead of first creating an output file with too much info, just use the input command (DIR in this case), to restrict to what you want :
dir vmware*.* /b
Or whatever the name of the file(s) are ..
2. For replace purposes ... I've been using a Windows ported sed.exe for years, it's so much easier ... Yes, it's not standard Windows, but it works:
C:\>echo test 123 test test | sed "s/123/got ya/g"
test got ya test test
In a lot of cases its usage to remove strings, is very handy.