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: Hacker, petermad, Stefan2, white
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"
You used a dot instead of a comma?petermad wrote: 2023-08-22, 09:03 UTC I tried with /CGL0N="<120>test_[C].txt",cm_Wait 1000.cd "test_120.txt" - but the cd command is still not carried out.
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?
You are using the parameter field and include commands in the parameter field?petermad wrote: 2023-08-22, 09:03 UTC I don't get any error using /CGL0N="<120>test_[C].txt",cd "test_120.txt" - but TC does not place test_120.txt under the cursor as it should (as white has pointed out).
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.white wrote: 2023-08-22, 10:14 UTCYou are using the parameter field and include commands in the parameter field?petermad wrote: 2023-08-22, 09:03 UTC I don't get any error using /CGL0N="<120>test_[C].txt",cd "test_120.txt" - but TC does not place test_120.txt under the cursor as it should (as white has pointed out).
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: