Skip to content

Instantly share code, notes, and snippets.

@thorade
Created October 22, 2014 07:28
Show Gist options
  • Save thorade/0808b5fd73becf3a35b6 to your computer and use it in GitHub Desktop.
Save thorade/0808b5fd73becf3a35b6 to your computer and use it in GitHub Desktop.
PowerShell script that recursively deletes all files with extension .bak-mo
# 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