Hi Linney,
Thanks for your reply. I wasn't for sure if it was possible, but was hoping so.
A sales rep was wanting this setup for one of his customers, so that unnecessary printing could be eliminated. My thought, which would be 10x easier is to introduce account codes to print, which can be...
Hi,
I was wondering if anyone knows if there is a way to change the default Windows Print Dialog settings, where you click File>Print and you choose your printer, the Page Range, Number of Copies, etc.? Basically, I'm wanting to change the Page Range radio button from "All" to "Pages", where...
I ended up discovering that Windows was holding the file open and wouldn't let me move the file. I had to perform the reading in a separate sub than the moving. I have it working now. Here's the code:
################
use strict;
use warnings;
use File::chmod;
use Cwd;
use Carp;
use...
ProbablyDown,
Copy works great, but move/delete give the permission errors. If I could copy/delete that would work just as good as move, but no luck.
I'll try the explicit path and let you know of the results.
Thanks for your suggestions.
--Ken
ProbablyDown,
Here's the exact message from the command prompt:
############
D:\Scripts>perl Copy_pdf_pages.pl
File mcp_1678576.pdf has 3 pages
mcp_1678576.pdf:3
move( mcp_1678576.pdf, D:\Scripts\1\mcp_1678576.pdf ) failed: Permission denied at Copy_pdf_pages.pl line 61.
############
I check...
Here's an updated version of the script, as I changed a couple of lines that I didn't particularly like:
###################
use strict;
use warnings;
use File::chmod;
use Cwd;
use Carp;
use Getopt::Long;
use PDF;
use POSIX;
use File::Copy;
use File::Basename;
# find out current working...
Brian,
Thanks for your reply. I just moved the file through the command prompt: "move mcp_1678576.pdf .\1\mcp_1678576.pdf" and the file moved fine. I checked the permissions on the root folder and it's subfolder and I have permission for full control. Perl runs through my local login...
Hello,
I have a script that is reading the contents of a directory, only for files with a *.PDF extension. Once the files names are read into a list, the pdf's are looked at to determine the number of pages in the file. Based on the number of pages, I'm wanting a new directory to be created...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.