any option to pass SHORT filename to IEView/HTMLView to MSIE

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

any option to pass SHORT filename to IEView/HTMLView to MSIE

Post by *leopoldus »

Is there any option to make TC to pass SHORT filenames to lister plugins IEView/HTMLView or/and from these plugins further to MS Internet Explorer module?

The problem is, that in my system IEView/HTMLView always fail to open a file in Lister, if there is some Unicode character, say a Cyrillic letter, in the file fullname (that is in the file name or path). I have no any idea, what may be the reason of this trouble, but I hope, that passing short filenames (old DOS ASCII 8.3 format without any Unicode chars) could be a workaround.

Thanks in advance!
Last edited by leopoldus on 2012-10-22, 09:08 UTC, edited 1 time in total.
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: any option to pass SHORT filename to IEView/HTMLView to

Post by *nsp »

leopoldus wrote:Is there any option to make TC to pass SHORT filenames to lister plugins IEView/HTMLView or/and from these plugins further to MS Internet Explorer module?

The problem it, that in my system IEView/HTMLView always fail to open a file in Lister, if there is some Unicode characters, say Cyrillic letters, in the file's fullname (that it in the file name or path). I have no any idea, what may be the reason, but I thought, that passing short filenames could be a workaround.

Thanks in advance!
Some hint to check your guess about filename. You should first try to call the lister forcing IEView or HTMLView using a button or a user_cmd.

Code: Select all

Command : %COMMANDER_EXE% /S=L:PHTMLView
parameter: %Z%p%n
or

Code: Select all

Command : %COMMANDER_EXE% /S=L:PIEView
parameter: %Z%p%n
Choose icon and tooltip as you which...
if you use minus p n you get old 8.3 dos names !
Try to view critical file using those command !
You can also try to force starting temp folder %TEMP% if it do not contain any "strange characters"...
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2nsp
Some hint to check your guess about filename. You should first try to call the lister forcing IEView or HTMLView using a button or a user_cmd.
Well, I've made the test as you instructed. It was a big surprise for me, that the usual error preserves even when I open HTMLView or IEView manually this way with passing them a fileanames (parameters %Z%p%n). What could it mean?
I've tested the thing once more right now. There is a file with name GLS.htm. When I press F3, Lister openes this file with IEView plugin, as it should be accodring to my settings. But if I add, say, any Cyrillic letter to the file name, say, GLS ф.htm and than try open it with F3 again, I get the following error message:

This program cannot display the webpage
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.

and so on...

If my guess was not correct, what could be the reason on the trouble?
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

leopoldus wrote:2nsp
Well, I've made the test as you instructed. It was a big surprise for me, that the usual error preserves even when I open HTMLView or IEView manually this way with passing them a fileanames (parameters %Z%p%n). What could it mean?
I've tested the thing once more right now. There is a file with name GLS.htm. When I press F3, Lister openes this file with IEView plugin, as it should be accodring to my settings. But if I add, say, any Cyrillic letter to the file name, say, GLS ф.htm and than try open it with F3 again, I get the following error message:

This program cannot display the webpage
Most likely causes:
You are not connected to the Internet.
The website is encountering problems.
There might be a typing error in the address.

and so on...

If my guess was not correct, what could be the reason on the trouble?
I also personally did a test on TC x32 and for both IEView and HTML View using the same name as you (GLS ф.htm).

Code: Select all

(<body><H1>Hello world</h1><b> in HTML</b></body>)
all is ok on my side even in folder with Unicode chars.

Does it work well if you call ie directly ?

Code: Select all

TOTALCMD#BAR#DATA
%ProgramFiles%\Internet Explorer\iexplore.exe
%Z%P%N
%ProgramFiles%\Internet Explorer\iexplore.exe


0
-1
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2nsp
Does it work well if you call ie directly ?
Yes, this button opens such files in MS Internet Explorer without any problem. (It's a very good test, thank you and shame for me, that I have not come to this idea myself.)
So we can see, that the problem is NOT in OS / MSIE settings. But WHAT IS the reason of the problem?
also personally did a test on TC x32 and for both IEView and HTML View using the same name as you (GLS ф.htm).
Yes, I'm acknowledged the fact, that tne most users have not such issue with IEView/HTMLView. However me and some other few users have it :( I've tried tro discuss it at several forums, but nobody was able to imagine, what is the root og the issue, I don't even speak of fixing it.
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

leopoldus wrote: Yes, I'm acknowledged the fact, that tne most users have not such issue with IEView/HTMLView. However me and some other few users have it :( I've tried tro discuss it at several forums, but nobody was able to imagine, what is the root og the issue, I don't even speak of fixing it.
have you made a test with a fresh ieview.ini ?
Did you tested to disable hooks see debug section of ieview.ini ?
If you have position enabled, give at look at positions.ini trying to detect your filename.
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2nsp
have you made a test with a fresh ieview.ini ?
Yes, of course. I've made tests with several pure TC installations as well ;)
Did you tested to disable hooks see debug section of ieview.ini ?
I've tried it now. No effect...
If you have position enabled, give at look at positions.ini trying to detect your filename.
Well, I've done it now. For example, there is the following line there in the file positions.ini:

Windows%20-%20oa%E9e%20li%E4za%F7zc%20acsn%F3ae%FCki%E9%20lag?nc%20pagefile.sys%20-%20%D5aisa%F5ais.html=0

That means (in UTF encodings??)
Windows - файл подкачки виртуальной памяти pagefile.sys - Хабрахабр.html

But I am mot able to make any conclusions from this fact. May be you can do it?
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

leopoldus,
Language setting for non-unicode programs?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2Hacker
Language setting for non-unicode programs?
Excuse me, I've forgotten to mention this the most intriguing part of the story. Non-Unicode language is Russian (Cyrillic).
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

Hi, friends. Is there any thoughts?
User avatar
nsp
Power Member
Power Member
Posts: 1913
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

leopoldus wrote:Hi, friends. Is there any thoughts?
A) do not use unicode char in filename !

Does the file is correctly viewed using another plugin like synwrite ?

What is your OS and system codepage ?
B) Does the default system code-page match the one used for lister as suggested by roman ?
You can find or edit a Codepage key under lister section.


C) use ulister that works correctly with plain html !
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2nsp
Does the file is correctly viewed using another plugin like synwrite ?
I do not use synwrite. But I use many other Lister plugins, say, SumatraPDF, office, ListDoc, office 2007. excellence, Imagine, OOView and others. No one of them has this issue with chars in viewed file name.
Do you suppose, that synwrite might me useful to test something?
What is your OS and system codepage ?
Sorry, I don't sure, what do you mean as "OS and system codepage". Is'n it the same setting as the language for non-Unicode programs (Russian in my case)?
Windows OS interface language is English.
B) Does the default system code-page match the one used for lister as suggested by roman ? You can find or edit a Codepage key under lister section.
Excuse me, I don't think, that the default encoding for Lister might be somehow way connected with the issue we are discussing about.
My current settings was "As configured for current font" - and it seems, that changing affect only the way how the current document is displayed in Lister natively (that is without plugins)
A) do not use unicode char in filename
I do not use them, at least not for HTML files. However other people do, thus different codepages chars are included in many HTML documents downloaded from Internet.
C) use ulister that works correctly with plain html !
I do use it. However it is far not so gooda and fast specially with HTML and some other types of documents, nor as and universal as IEView/HTMLView.
User avatar
petermad
Power Member
Power Member
Posts: 16027
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I have no problems opening a html file with the name of "GLS ф.htm" in either IEView 1.94a or HTHLView 1.2.6 under either Windows XP or Windows 7 x64.

In the history for HTMLView it says:
1.2.5 (09.01.2011)
- Fixed: some files with unicode paths were not opened properly
2leopoldus which version(s) are you using ?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
leopoldus
Senior Member
Senior Member
Posts: 221
Joined: 2004-11-21, 09:47 UTC

Post by *leopoldus »

2petermad

You are right, I used the older version. Now I've installed last version 1.2.6 and it opens my headache files without problems! Thank you very much for hint. Actually I had not even thought to check for new versions, because was assured, that this plugin has stopped its developing many years ago. Sometimes it's so nice to be wrong ;)

However in some circumstances IEView is more useful.
What should be the conclusion from the fact, that HTMLView new version can now open at my system Unicode filenames, but IEView 1.94 does not.
Does it mean, that it's no point to search the issue, because neither me nor anybody else can repair the problem besides the author of IEView plugin? Or may be it's possible some alternate approach, as for example passing files shortname to IEView or some workaround like this?
Post Reply