Created
October 22, 2014 07:28
-
-
Save thorade/0808b5fd73becf3a35b6 to your computer and use it in GitHub Desktop.
PowerShell script that recursively deletes all files with extension .bak-mo
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
# This Windows PowerShell script | |
# recursively deletes Dymola *.bak-mo backup files | |
# from all folders below itself | |
# get current directory | |
$curDir = Split-Path -Parent $MyInvocation.MyCommand.Path | |
# delete files | |
get-childitem $curDir -include *.bak-mo -recurse | foreach ($_) {remove-item $_.fullname} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment