For a while now I've had this reproducible error:
If I try to open any file (so regardless of its extension) that has a %
in its name, regardless of the method of opening (click on it in Explorer, open it manually in the command prompt etc.), the program which is used to send the request (Explorer and cmd.exe, in the previous examples) would crash 100%.
Does anyone know the exact mechanism/sequence Windows uses to open a file? I could help out with debug information that way.
Answer
It's a long road from the point where you double-click on an icon on screen to the point where an application is started.
There is a lot go wrong.
- You click on a file.
- Windows determines the file type.
- Can this file be executed on its own, or does it require another application to open it?
Let's check what the registry says about the file extension. - Registry says it's a
txtfile
. - Registry says, to
open
atxtfile
we should use a program calledC:\Windows\system32\NOTEPAD.EXE
- Now we can finally create our process:
There is so much stuff involved, there is no way of telling what exactly is the problem. You need to perform further investigations yourself.
Please have a look at:
No comments:
Post a Comment