Created
February 7, 2015 13:40
-
-
Save ryo-murai/f9bd78c6fffc36edb8b1 to your computer and use it in GitHub Desktop.
タイムスタンプでファイルを整理する
This file contains 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
dir -Directory | % { $d = $_ | |
move "$d\*" . | |
rmdir $d | |
} |
This file contains 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
dir | % { $f = $_ | |
$d = $f.LastWriteTime.ToString("yyyyMMdd") | |
mkdir $d -force | |
move $f $d | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment