Endrju > 2020-12-21 05:33
![[Image: 2020-12-21-11-05-001.jpg]](https://i.postimg.cc/yNpgF91k/2020-12-21-11-05-001.jpg)
![[Image: 2020-12-21-11-05-002.jpg]](https://i.postimg.cc/RVn7vv7j/2020-12-21-11-05-002.jpg)
Isaias Baez > 2020-12-21 08:06
scottkillen > 2020-12-21 08:10
Endrju > 2020-12-21 08:54
(2020-12-21 08:06)Isaias Baez Wrote: Can you try and add quotation marks around the %1?
If your file path name contains spaces Windows might have issues with it.
(2020-12-21 08:10)scottkillen Wrote: I'm not sure if you are getting an outright error, or just that the file isn't opening for you.
I have a couple of notes:
* %1 is undefined, or may be passed to the command line as '%1' without any substitution.
* If notepad is your default editor for '.txt' files then you can use a "document" favorite type, rather than an application; however, his won't give you the ability to run it as admin.
* You might try using {SEL_LOC} rather than {SEL_NAME} if notepad is not finding the file for some reason.
scottkillen > 2020-12-21 09:20
Endrju > 2020-12-21 10:34
(2020-12-21 09:20)scottkillen Wrote: If I understand correctly:
You are using an Application favorite type and you replaced {SEL_NAME} with {SEL_LOC}. The result is that it always opens txt files and undefined files types, but not .ini and .log files.
Quote:Thank about what is happening: QAP is substituting {SEL_LOC} with the name of the file, the same way every time, yet notepad sometimes works and sometimes doesn't. This is something else.
Horst > 2020-12-21 11:50
(2020-12-21 10:34)Endrju Wrote:(2020-12-21 09:20)scottkillen Wrote: If I understand correctly:
You are using an Application favorite type and you replaced {SEL_NAME} with {SEL_LOC}. The result is that it always opens txt files and undefined files types, but not .ini and .log files.
Yes, exactly
Quote:Thank about what is happening: QAP is substituting {SEL_LOC} with the name of the file, the same way every time, yet notepad sometimes works and sometimes doesn't. This is something else.
Too bad it doesn't work with the indicated files (.log, .ini) it would be very helpful
Endrju > 2020-12-21 12:46
(2020-12-21 11:50)Horst Wrote: It works with any file your editor supports.
I have redirected notepad to some other editor.
I can open .log, .ini or .txt without problems using {SEL_LOC} in QAP.
So there is no QAP problem here !