PDA

View Full Version : Open PDF files in command prompt


reemon
March 2nd, 2006, 03:29 AM
I use Totalcommander to open various files at once.
To view PDF view I use foxit reader (my default pdf viewer).

c:\program files\FoxitReader\FoxitReader.exe d:\1.pdf --> works correct
c:\program files\irfanview\i_view32.exe d:\1.pdf d:\2.pdf --> error message

How can I resolve this problem to open a list of PDF files in dos command?

ditto
March 2nd, 2006, 01:55 PM
write to irfan view support - this is foxit and not related !!! O_o

mario
March 2nd, 2006, 02:37 PM
c:\program files\irfanview\i_view32.exe d:\1.pdf d:\2.pdf --> error message


Why should Irfan view open a PDF file?


IrfanView
---------------------------
H:\artikelen\pet\2003a085.pdf : Can't read file header !
Unknown file format !
---------------------------
:1_06:

gr mario

arthur
March 3rd, 2006, 12:36 AM
Foxit Reader only supports you to open one file for each time.

reemon
March 3rd, 2006, 12:49 AM
Why should Irfan view open a PDF file?


Yes correct it's an error it must be FoxitReader. (I have the same problem with Irfan)
Must be:
c:\program files\FoxitReader\FoxitReader.exe d:\1.pdf --> works correct
c:\program files\FoxitReader\FoxitReader.exe d:\1.pdf d:\2.pdf --> error message

@arthur,

Thank you for your answer. This is the answer on my question.
I thought it was possible to open more then 1 file at once in FoxitReader using one foxitreader for every pdf file.
(sure tab version would be even better).

Andreasm82
March 3rd, 2006, 05:08 AM
If you want to open two pdfs together, just create a batch file (.bat).
There you can use 2 parameters.
In that batch file, just open 2 foxitreader's - one with first, and another with second file.

reemon
March 3rd, 2006, 05:43 AM
If you want to open two pdfs together, just create a batch file (.bat).
There you can use 2 parameters.
In that batch file, just open 2 foxitreader's - one with first, and another with second file.

I would like to do so but do not have any idea how to create a bat file in combination with Total commander (my file manager).

In Total Commander selected files are put in a variable "%L"
like this: 1.pdf 2.pdf 3.pdf etc.
then these files are put in a dos command action behind the .exe of the associated program
like this: foxreader.exe 1.pdf 2.pdf 3.pdf etc.

There are no problems with .doc .xls .bat. txt files but doesn't work with pdf files.

Can you give me a hint how to resolve this problem with a bat file?

Andreasm82
March 3rd, 2006, 06:11 AM
try this, but I don't know if this works...
on my computer, it opens ONLY one file if I use 2 parameters. strange.

or look here
http://www.computerhope.com/batch.htm


call foxit.bat with: foxit.bat file1.pdf file2.pdf

content of foxit.bat :


@ECHO OFF
c:\programs\foxitreader\foxitreader.exe "%1"
c:\programs\foxitreader\foxitreader.exe "%2"

FoxItFan
March 5th, 2006, 11:00 AM
You can open multiple pdfs from a Foxit window using the Open command from the task bar File menu, then select which you wish to view from the drop-down menu under Window.

FoxItFan
March 10th, 2006, 08:07 AM
Foxit Reader only supports you to open one file for each time.

...
@arthur,

Thank you for your answer. This is the answer on my question.
I thought it was possible to open more then 1 file at once in FoxitReader using one foxitreader for every pdf file.
(sure tab version would be even better).

Did I misunderstand the question and answer here or does my prior reply not apply? You cannot open multiple pdfs in a single Foxit Reader window by clicking on pdf icons, only the first pdf. However, once you've opened a Foxit window, with or without a single pdf, you may open additional pdfs from the File menu on the Foxit task bar, all within the single Foxit window.

reemon
March 10th, 2006, 08:32 AM
@foxitfan

Yes, I know thank you for your reply.