Question about printing from command line
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
nbrege
- User
- Posts: 19
- Joined: Tue Dec 15, 2009 12:50 am
Question about printing from command line
When I want to print PDF's from the command line and I specify the filenames, what is the maximum number of files I can specify? Is there a limit imposed either by Windows or by PDFXCV? I know it works with 5, but what if I wanted to print 30 or 40 in one command?
-
Paul - PDF-XChange
- Site Admin
- Posts: 7445
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Question about printing from command line
Hi nbrege,
what is the command line string you are using? I believe it should work for more files, it does when using Windows Explorer and selecting multiple files. Did you test it and it?
regards
what is the command line string you are using? I believe it should work for more files, it does when using Windows Explorer and selecting multiple files. Did you test it and it?
regards
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
nbrege
- User
- Posts: 19
- Joined: Tue Dec 15, 2009 12:50 am
Re: Question about printing from command line
The string I'm using is just whats listed in the help file ... pdfxcview.exe print:printername file1 file2 file3 file4 etc.
I tested with 5 files & it worked fine, just wondering if there's any limit set by either PDFXCV or Windows itself, ie. is there a limit to the length of a command line string.
I tested with 5 files & it worked fine, just wondering if there's any limit set by either PDFXCV or Windows itself, ie. is there a limit to the length of a command line string.
-
Stefan - PDF-XChange
- Site Admin
- Posts: 19930
- Joined: Mon Jan 12, 2009 8:07 am
Re: Question about printing from command line
According to Microsoft:
Best,
Stefan
So depending on your file names and paths an average of 50-70 characters would be used per file, so it is up to you to decide what would be "safe" if you would be be generating those command lines without knowing or counting the actual string length.On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters. On computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the command prompt is 2047 characters.
This limitation applies to the command line, individual environment variables (such as the PATH variable) that are inherited by other processes, and all environment variable expansions. If you use Command Prompt to run batch files, this limitation also applies to batch file processing.
Best,
Stefan