Files have been created, the cursor has been set to the specified file, but an error window appears:
Code: Select all
---------------------------
File not found!
cm_Edit /CGL0N="<120>test_[C].txt",cd "test_120.txt"
---------------------------
Moderators: white, Hacker, petermad, Stefan2
Code: Select all
---------------------------
File not found!
cm_Edit /CGL0N="<120>test_[C].txt",cd "test_120.txt"
---------------------------
ghisler(Author) wrote: ↑2023-08-22, 07:12 UTC 2. TC executes cd "test_120.txt"
-> Failure, you cannot cd to a file
HISTORY.TXT wrote:02.12.09 Added: Command line: Command "cd filename" places cursor directly on file with name "filename"
I didn't in the actual button - there I used: /CGL0N="<12>test_[C].txt",cm_Wait 1000,cd "test_12.txt" - to no avail.You used a dot instead of a comma?
It's not that. I use this command almost every day through a script. I am surprised that you forgot about this possibility.ghisler(Author) wrote: ↑2023-08-22, 07:12 UTC 2. TC executes cd "test_120.txt"
-> Failure, you cannot cd to a file
That's what I understood. It needs to be corrected so that there is no error.ghisler(Author) wrote: ↑2023-08-22, 07:12 UTC 3. TC assumes that the entire command line couldn't be executed and tries to launch it directly.
-> Error message
Yes - silly me - of course the cd command cannot be executed from the Parameters field.
Interesting with the Danish message in the last line, when I am running TC with English language.---------------------------
Total Commander
---------------------------
File not found!
cm_Edit /CGL0N="<12>test_[C].txt",cd "test_12.txt"
"Den angivne fil blev ikke fundet."
---------------------------
OK
---------------------------
And after clarifications?
The cursor IS placed at the file, before the error message is shown.And after clarifications?
Yes, the "cd" command is being executed, but it returns FALSE by mistake (because there is no directory change).The cursor IS placed at the file, before the error message is shown.
In this case, there are 2 ways out: