我是 Windows 脚本的新手,所以请耐心等待。
我想从多个文件夹中找到“测试”文件夹。如
从多个路径搜索测试文件夹:
/rbl.com/mailroot/test
/pml.com/mailroot/test
/pax.com/mailroot/
想要得到这样的输出:
test@rbl.com
test@pml.com
我已运行此命令以获取结果dir /S test > c:\results.txt
输出:
Volume in drive C has no label.
Volume Serial Number is 4A9E-06D4
Directory of C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Enable\Postoffices\rbl.com\MAILROOT
08/05/2016 12:36 AM <DIR> test
0 File(s) 0 bytes
Directory of C:\Program Files (x86)\Parallels\Plesk\Mail Servers\Mail Enable\Postoffices\pml.com\MAILROOT
08/05/2016 12:36 AM <DIR> test
0 File(s) 0 bytes
但是如何提取信息,例如:
test@rbl.com
test@pml.com