私はWindowsスクリプティングの初心者です。Windowsからのデータの検索と整理
複数のフォルダから「test」フォルダを探したいとします。複数のパスから
Searchテスト用フォルダのような:
/rbl.com/mailroot/test
/pml.com/mailroot/test
/pax.com/mailroot/
は、そのような出力を取得したい:
[email protected]
[email protected]
私は結果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
しかし、どのような情報を抽出するには:
[email protected]
[email protected]
あなたはどのバージョンのPowerShellを使用していますか( '$ PSVersionTable.PSVersion.Major'を参照)? –