any option to pass SHORT filename to IEView/HTMLView to MSIE
Moderators: Hacker, petermad, Stefan2, white
any option to pass SHORT filename to IEView/HTMLView to MSIE
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!
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.
Re: any option to pass SHORT filename to IEView/HTMLView to
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.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!
Code: Select all
Command : %COMMANDER_EXE% /S=L:PHTMLView
parameter: %Z%p%n
Code: Select all
Command : %COMMANDER_EXE% /S=L:PIEView
parameter: %Z%p%n
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"...
2nsp
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?
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?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.
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).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?
Code: Select all
(<body><H1>Hello world</h1><b> in HTML</b></body>)
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
2nsp
So we can see, that the problem is NOT in OS / MSIE settings. But WHAT IS the reason of the problem?
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.
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.)Does it work well if you call ie directly ?
So we can see, that the problem is NOT in OS / MSIE settings. But WHAT IS the reason of the problem?
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 italso personally did a test on TC x32 and for both IEView and HTML View using the same name as you (GLS ф.htm).

have you made a test with a fresh ieview.ini ?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 itI'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.
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.
2nsp

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?
Yes, of course. I've made tests with several pure TC installations as wellhave you made a test with a fresh ieview.ini ?

I've tried it now. No effect...Did you tested to disable hooks see debug section of ieview.ini ?
Well, I've done it now. For example, there is the following line there in the file positions.ini:If you have position enabled, give at look at positions.ini trying to detect your filename.
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?
A) do not use unicode char in filename !leopoldus wrote:Hi, friends. Is there any thoughts?
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 !
2nsp
Do you suppose, that synwrite might me useful to test something?
Windows OS interface language is English.
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)
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.Does the file is correctly viewed using another plugin like synwrite ?
Do you suppose, that synwrite might me useful to test something?
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)?What is your OS and system codepage ?
Windows OS interface language is English.
Excuse me, I don't think, that the default encoding for Lister might be somehow way connected with the issue we are discussing about.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.
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)
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.A) do not use unicode char in filename
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.C) use ulister that works correctly with plain html !
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:
In the history for HTMLView it says:
2leopoldus which version(s) are you using ?1.2.5 (09.01.2011)
- Fixed: some files with unicode paths were not opened properly
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
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
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?
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?