[softwarelist] Re: Potential TransPDF improvements

  • From: Jeremy Nicoll - freelists <jn.fr.lsts.74@xxxxxxxxxxxxxxxxxxxx>
  • To: davidpilling@xxxxxxxxxxxxx
  • Date: Mon, 28 Jan 2019 14:25:28 +0000

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

if not exist %2\ mkdir %2

I would expect that line to have problems if   %2  contained spaces.

And, as someone else said, you shouldn't be trying to write files into
the root directory of C:\ - it's prohibited (unless running as Admin)
as it's the kind of thing malware tries to do.

I also wondered if when called from Ovation Pro, whether either of the
arguments already has its value enclosed in quotes?

It might do no harm to sanity check the values of %1 and %2 before you
use them.


--
Jeremy Nicoll - my opinions are my own
To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: