Page 1 of 1
Can't open file when path contains space character
Posted: Thu Jul 14, 2005 10:27 am
by Petra.T
Don't know if this is a bug or some problem with my PC, but when I try to open a picture file from Total Commander or Explorer and it's path contains any space char, the program fails. It shows a message box: "Error opening the file <path_only_to_first_space>" and then opens the browser window.
Opening such file direct from browser window is OK.
XnView version: 1.80.1
OS: WinXP Home
Posted: Thu Jul 14, 2005 10:48 am
by ckit
I've had this problem before, just re-register the files in XnView again.
Posted: Thu Jul 14, 2005 12:34 pm
by ckv
This happen because the file association is false or incomplete
Code: Select all
This is the standard file association what should work with every aplication
"C:\Program files\XnView\xnview.exe" "%1"
%1 = pointer to the filename
If the file pointter isn't in quotes or the pointter is missing, some programs can't open the files right.
It's all about how well the program handels parameters.
At least XnView 1.80.1 creates the standard file associations so the bug is in the program what created the file associations (older XnView perhaps)
A joke of 98 SE…
Posted: Thu Jul 14, 2005 2:42 pm
by Clo
ckv

Hello !
…If the file pointer isn't in quotes…
- Right, and this is a well-known bug of 98 SE. That happens by "crisis periods", for some unknown reasons,
the quotes of
"%1" are removed, then you get a cascade of error messages like : "
Can't open <first_part>",
(space in path / name) "
Can't open <second_part>" and so on if the path and the file-name both contain spaces…
• Personally, I correct this remaking the right association in Total Commander. But it can stay correct for one hour or three months, impossible to know…
- Under XP-Pro, some quotes are
originally missing from the Win installation, i. e. for *.TXT and «Notepad», that is not very clever ! However, when fixed, they are no longer removed, as far as I could see…

Kind regards,
Claude
Clo
Re: A joke of 98 SE…
Posted: Thu Jul 14, 2005 4:50 pm
by ckv
Clo wrote:But it can stay correct for one hour or three months, impossible to know…
It stays correct until some program takes the association or win98 crashes and "fix" the registery by recovering latest registery backup. At least I think so...
Yes and no---
Posted: Thu Jul 14, 2005 7:56 pm
by Clo
>> ckv
It stays correct until some program takes the association or win98 crashes…

Indeed, I thought to that too, but isn't the only cause : something is wrong in the saving of a fixed association in <win.ini> by Windows.
- I said : “
One hour…” but it can be 5 minutes or less as well, even rebooting the PC, while the quotes have been restored !

KR
Claude
Clo
Posted: Fri Jul 15, 2005 8:27 am
by ckv
Oh. This old OS works in many mysterious ways.
