[softwarelist] Re: Potential TransPDF improvements

  • From: David Pilling <david@xxxxxxxxxxxxxxxx>
  • To: davidpilling@xxxxxxxxxxxxx
  • Date: Mon, 28 Jan 2019 17:49:32 +0000

Hi Peter,

Let me have another go...

On 25/01/2019 13:21, Peter Newble wrote:

    if not exist %2\ mkdir %2

No - don't make a directory, you've been handed a file name, use it.

    "C:\Program Files\epstool-3.09\bin\epstool.exe" --add-user-preview
    C:\Temp.tif C:\Temp.eps "%2\%~n1.eps"

I guess that has to be:


  "C:\Program Files\epstool-3.09\bin\epstool.exe" --add-user-preview
     C:\Temp.tif C:\Temp.eps "%2"

as in write the converted file to the file name in the second argument.

With luck, the access error is due to OP attempting to open what it thinks is a file, but which is now a directory.


--
David Pilling
www.davidpilling.com
To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: