Skip to content

Instantly share code, notes, and snippets.

@iraSenthil
Last active July 19, 2018 20:23
Show Gist options
  • Save iraSenthil/8590084 to your computer and use it in GitHub Desktop.
Save iraSenthil/8590084 to your computer and use it in GitHub Desktop.
$files = ls -Recurse | where {!$_.PsIsContainer}
$files | foreach {
$destinationFolder = $_.Directory.FullName -replace "SrcFolderName", "SrcFolderName_converted"
emf2sf.bat $_.FullName --out-dir $destinationFolder
if($LastExitCode -eq 2)
{
copy $_.FullName $destinationFolder
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment