I'm looking for a utility to select the smaller of two versions of a PDF document.You could do it using the %~z modifier to get the file size into a
Philip Herlihy wrote:
I'm looking for a utility to select the smaller of two versions of a PDF document.You could do it using the %~z modifier to get the file size into a
variable in a CMD batch file.
You could use wsh/jscript/vbscript/filesystemobject but that's going
away, so nowadays I'd probably use powershell.
Clearly, for scripting PowerShell is the way to go. I've just never yet found
time to learn it.
I'm looking for a utility to select the smaller of two versions of a PDF document.
I'm helping a friend compress PDFs of music scores to load onto a tablet to play from. We've found that Corel's PDF Fusion can batch process compression,
usually taking about 40% off the file size. But some files come out bigger, occasionally much bigger! We'd like to use the original if it's smaller than the processed version.
I'd thought Robocopy could likely to this - but it can't. (It will set a min or max file size to be copied/moved/merged. I've looked at Xcopy, and I can't
think of a command-line (or other) utility that will do this. CoPilot will write you a PowerShell script to do it, but not (still) having learned PowerShell I'd be wary of trusting a generated script.
Can anyone think of a utility that will do this? I'd get PDF Fusion to dump processed files in a separate folder, then we'd want to compare sizes with the
folder with the originals - unless there's a better way?
I'm looking for a utility to select the smaller of two versions of a PDF document.
I'm helping a friend compress PDFs of music scores to load onto a tablet
to play from. We've found that Corel's PDF Fusion can batch process compression,
usually taking about 40% off the file size. But some files come out
bigger, occasionally much bigger! We'd like to use the original if it's smaller than the processed version.
I'd thought Robocopy could likely to this - but it can't. (It will set
a min or max file size to be copied/moved/merged. I've looked at Xcopy,
and I can't think of a command-line (or other) utility that will do
this. CoPilot will write you a PowerShell script to do it, but not
(still) having learned PowerShell I'd be wary of trusting a generated
script.
Can anyone think of a utility that will do this? I'd get PDF Fusion to
dump processed files in a separate folder, then we'd want to compare
sizes with the folder with the originals - unless there's a better way?
In article <lhbrudFo7tvU1@mid.individual.net>, Andy Burns wrote...
Philip Herlihy wrote:
I'm looking for a utility to select the smaller of two versions of a PDF document.You could do it using the %~z modifier to get the file size into a
variable in a CMD batch file.
You could use wsh/jscript/vbscript/filesystemobject but that's going
away, so nowadays I'd probably use powershell.
Clearly, for scripting PowerShell is the way to go. I've just never yet found
time to learn it. I was something of a guru in Unix shell-scripting in my day,
but there's always something pressing getting in the way of learning things I don't often have a need for these days!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 415 |
Nodes: | 16 (3 / 13) |
Uptime: | 21:04:30 |
Calls: | 8,717 |
Calls today: | 6 |
Files: | 13,273 |
Messages: | 5,954,676 |