Last active
August 29, 2015 14:07
-
-
Save thorade/f922e4671d2b67dd55df 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
# This PowerShell script converts all eps files in all subfolders to pdf files | |
$curDir = Split-Path -Parent $MyInvocation.MyCommand.Path | |
$epsFiles = Get-ChildItem -Recurse $curDir\*.eps | |
$texBin = "${env:ProgramFiles(x86)}\MiKTeX 2.9\miktex\bin" | |
Set-Alias eps2pdf $texBin\epstopdf.exe | |
ForEach ($file In $epsFiles){ | |
eps2pdf $file | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment