Created
June 3, 2014 04:02
-
-
Save kimsama/d3535f21ee20e2e44809 to your computer and use it in GitHub Desktop.
특정 디렉토리 아래의 특정 확장자를 가진 파일을 모두 찾아 이에 대한 처리(command)를 하는 powershell script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| >$files = Get-ChildItem -rec -Include *.MESH | ForEach-Object -Process ($_.FullName) | |
| >for( $i=0; $i -lt $files.Count; $i++) { | |
| > [command] $files[$i] | |
| >} | |
| > | |
| > | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see the following:
http://www.christiano.ch/wordpress/2009/07/29/powershell-enumerate-files-recursive-and-get-full-path-of-each-file/