Problem - Open Images witch TC & Vista
Moderators: white, Hacker, petermad, Stefan2
- GeProtector
- Junior Member
- Posts: 8
- Joined: 2004-11-27, 21:25 UTC
Problem - Open Images witch TC & Vista
Hi,
i use Windows Vista HomePremium and TC 7 Beta 3.
Every time i open a Image with the TC, i will be ask how to open it. (open as...)
http://img503.imageshack.us/img503/8934/tcbugsz1.jpg
Every time i select one prgoramm and marked the "filetype open everey time with this program" and every time i will be ask again.
But if i open the same image without TC (Windows Explorer etc.) it will be open with the correct program.
So its a TC problem only - what can i do to fix this?
(sorry for my englisch - its late )
i use Windows Vista HomePremium and TC 7 Beta 3.
Every time i open a Image with the TC, i will be ask how to open it. (open as...)
http://img503.imageshack.us/img503/8934/tcbugsz1.jpg
Every time i select one prgoramm and marked the "filetype open everey time with this program" and every time i will be ask again.
But if i open the same image without TC (Windows Explorer etc.) it will be open with the correct program.
So its a TC problem only - what can i do to fix this?
(sorry for my englisch - its late )
- ghisler(Author)
- Site Admin
- Posts: 48108
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It looks like TC sees "open with" as the default verb, while Explorer sees something else. TC7 beta 4 will no longer try to find out what the default verb is, and just launch the file with an empty verb. Please report how it works once TC7 beta 4 becomes available!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- GeProtector
- Junior Member
- Posts: 8
- Joined: 2004-11-27, 21:25 UTC
- ghisler(Author)
- Site Admin
- Posts: 48108
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Please try with beta 4!Ok, the same problem with Movie-Files.
I will try to write a tool which reads all the relevant parts from the registry, which will make it easier to find the problem.TC dont show the icons of these files
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- GeProtector
- Junior Member
- Posts: 8
- Joined: 2004-11-27, 21:25 UTC
- ghisler(Author)
- Site Admin
- Posts: 48108
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Then something is wrong with your computer. I'm now letting Windows itself choose the associated program, by passing NIL/NULL to ShellExeuteEx. If even Windows cannot find the correct program, then the association must really be f*cked up.Sorry, same problem with beta 4.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
I remember a thread in the German forum where a user reported that an operating system update solved the problem. So the question is are all updates installed? Maybe Microsoft has added some new strange new ways of opening an associated document and decided later to remove this probably undocumented behavior - just a thought...
Well the thread starter reported that it works ok in Explorer. That means Explorer is doing something else here.If even Windows cannot find the correct program
I remember a thread in the German forum where a user reported that an operating system update solved the problem. So the question is are all updates installed? Maybe Microsoft has added some new strange new ways of opening an associated document and decided later to remove this probably undocumented behavior - just a thought...
Last edited by Lefteous on 2007-02-23, 11:18 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 48108
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Explorer isn't the Windows API. I have no idea what Explorer does instead of ShellExecuteEx, only a few people at Microsoft know that.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Okay, moved from Vista: Fehler beim Programmaufruf to this forum.
2Lefteous
I don't think, that this is fixed with any existing MS-SP. As mentioned in the above thread, the phenomenon, is still here under Vista ultimate, also the update state is very close to Herr Mann's report.
Let's try to locate the reason with a little bit more systematic testing.
The Beta4 has one different behavior compared to Beta3:
When copying the avi-filename to the TC - Command line and executing it from this place (<Ctrl+Enter><Enter>), always the correct associated program is called. This is definitly different to TC7b3.
In Beta 3 this method works only when WindowsMediaPlayer(WMP) is the default program.
Identical behavior in Beta3 and Beta4:
Double Click or <Enter> neither works in B3 nor B4 if the default program is not WMP.
Context menu and selecting the first entry works with both betas and both associated programs.
If WMP is the default program the entry is named "play"
If mPlayerC is the default program, the entry is identical to the "filename"
dragging the avi file on an new button and start the the document with a click on this buttons works only with WMP, not with mPlayerC declared as default program
Interesting remark: under "icon file" the filename of the actually associated program is automatically inserted.
So we have 4 different methods to open a document.
In Beta3 only one of four is okay.
IN Beta4 two of four are okay.
Knowing TC's source code, following the different execution paths, it should be possible to find the one working solution to fix this behavior under Vista.
HTH
Holger
2Lefteous
I don't think, that this is fixed with any existing MS-SP. As mentioned in the above thread, the phenomenon, is still here under Vista ultimate, also the update state is very close to Herr Mann's report.
Let's try to locate the reason with a little bit more systematic testing.
The Beta4 has one different behavior compared to Beta3:
When copying the avi-filename to the TC - Command line and executing it from this place (<Ctrl+Enter><Enter>), always the correct associated program is called. This is definitly different to TC7b3.
In Beta 3 this method works only when WindowsMediaPlayer(WMP) is the default program.
Identical behavior in Beta3 and Beta4:
Double Click or <Enter> neither works in B3 nor B4 if the default program is not WMP.
Context menu and selecting the first entry works with both betas and both associated programs.
If WMP is the default program the entry is named "play"
If mPlayerC is the default program, the entry is identical to the "filename"
dragging the avi file on an new button and start the the document with a click on this buttons works only with WMP, not with mPlayerC declared as default program
Interesting remark: under "icon file" the filename of the actually associated program is automatically inserted.
So we have 4 different methods to open a document.
In Beta3 only one of four is okay.
IN Beta4 two of four are okay.
Knowing TC's source code, following the different execution paths, it should be possible to find the one working solution to fix this behavior under Vista.
HTH
Holger
Last edited by HolgerK on 2007-02-23, 15:44 UTC, edited 1 time in total.
- GeProtector
- Junior Member
- Posts: 8
- Joined: 2004-11-27, 21:25 UTC
- ghisler(Author)
- Site Admin
- Posts: 48108
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
It's not a bug of Total Commander. I'm just calling ShellExecuteEx now with the image file as parameter and NULL as the Verb, so Windows does all the rest.
There must be some kind of ambiguity in your associations, which is handled by the Explorer in one way, and the Windows functions in another way. Removing this ambiguity will fix the problem.
Can you post the association for this file type, please?
There are two keys involved:
1. HKEY_CLASSES_ROOT\.jpg
Post the contents of this key (start regedit, go to the key, choose Export - Only the selected branch). Then paste the contents of the file here.
2. The above key contains a (default) value. This value is something like jpg_file or Jpegfile or similar. So repeat the same with the key named jpg_file or Jpegfile (or whatever you found as the default value) under HKEY_CLASSES_ROOT.
There must be some kind of ambiguity in your associations, which is handled by the Explorer in one way, and the Windows functions in another way. Removing this ambiguity will fix the problem.
Can you post the association for this file type, please?
There are two keys involved:
1. HKEY_CLASSES_ROOT\.jpg
Post the contents of this key (start regedit, go to the key, choose Export - Only the selected branch). Then paste the contents of the file here.
2. The above key contains a (default) value. This value is something like jpg_file or Jpegfile or similar. So repeat the same with the key named jpg_file or Jpegfile (or whatever you found as the default value) under HKEY_CLASSES_ROOT.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com