commandline-order to open file

The PDF-XChange Viewer for End Users
+++ FREE +++

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

Hammermensch
User
Posts: 6
Joined: Wed Oct 17, 2007 8:21 pm

commandline-order to open file

Post by Hammermensch »

Hi!

Im using PDF-Xchange Viewer with wine under ubuntu 8.10. I have the problem to find a command for opening pdf-files directly with pdf-change.

It seems that the order to open a file is not "pdfxview.exe <file>"
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: commandline-order to open file

Post by Lzcat - Tracker Supp »

Strange, because this is correct syntax and working on windows. Maybe issue is with names conversion or passing parameters?
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Hammermensch
User
Posts: 6
Joined: Wed Oct 17, 2007 8:21 pm

Re: commandline-order to open file

Post by Hammermensch »

yeah, maybe its because of the slashes. In windows \ and in linux /. somebody made a script to turn it, but also this one doesnt work for me.

#!/bin/bash
DATEI=Z:$1
DATEI=$(echo $DATEI | sed -e 's#/#\#g')
wine "C:\Programme\Tracker Software\PDF-XChange Viewer\pdf-viewer\PDFXCview.exe" $DATEI

I also tried this one

#!/bin/bash
DATEI=Z:$1
DATEI=$(echo $DATEI | sed -e 's#/#\#g')
env WINEPREFIX="/home/marcus/.wine" wine "C:\Programme\Tracker Software\PDF-XChange Viewer\pdf-viewer\PDFXCview.exe" $DATEI
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3603
Joined: Thu Jul 08, 2004 10:36 pm

Re: commandline-order to open file

Post by Ivan - Tracker Software »

don't forget: if file name contains spaces, it should be enclosed by " (double quote) characters.
PDF-XChange Co Ltd. (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.