Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by kcstulce

  1. kcstulce

    Windows Print Dialog default settings modification

    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...
  2. kcstulce

    Windows Print Dialog default settings modification

    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...
  3. kcstulce

    Permission Denied error when moving files - Perl

    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...
  4. kcstulce

    Permission Denied error when moving files - Perl

    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
  5. kcstulce

    Permission Denied error when moving files - Perl

    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...
  6. kcstulce

    Permission Denied error when moving files - Perl

    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...
  7. kcstulce

    Permission Denied error when moving files - Perl

    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...
  8. kcstulce

    Permission Denied error when moving files - Perl

    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...

Part and Inventory Search

Back
Top