Page 2 of 2

Re: Extended CD command

Posted: 2023-05-13, 13:07 UTC
by igarny
2Fla$her 2petermad Thanks for the hints!

I am using the 64bit version of this plugin:
New secure ftp plugin version 3.04 final (32 bit+64 bit)
Copyright (C) 2008-2022 Christian Ghisler, all rights reserved

Re: Extended CD command

Posted: 2023-05-13, 18:48 UTC
by igarny
I have figured it out ... feeling so stupid for not having it in the first place :oops:
Anyway based on some input from 2Fla$her in another post I came up with this:

Code: Select all

TCFS2.exe /ef tcm(4003) send(`cd \var\log{ENTER}`)
which can be assigned to a command / button and will switch to the respective folder without me having to specify the current plugin and server..

I find it a miss for not having a conformity between the different cd command initiations, like from menu command and TC command line control

Re: Extended CD command

Posted: 2023-05-13, 19:22 UTC
by Sir_SiLvA
and why do you need tcfs2 when that works with cd var\log just fine?

Re: Extended CD command

Posted: 2023-05-13, 19:30 UTC
by Fla$her
2igarny
I don't see the answer to the question about the server. I asked it for a reason.

Re: Extended CD command

Posted: 2023-05-13, 22:37 UTC
by LonerD
Support !

Re: Extended CD command

Posted: 2023-05-14, 07:14 UTC
by igarny
Sir_SiLvA wrote: 2023-05-13, 19:22 UTC and why do you need tcfs2 when that works with cd var\log just fine?
2Sir_SiLvA

I would be glad to learn from you on how to make this a button / menu command...
please note it should be:

Code: Select all

cd \var\log
NOT
cd var\log

Re: Extended CD command

Posted: 2023-05-14, 07:43 UTC
by Sir_SiLvA
igarny wrote: 2023-05-14, 07:14 UTC

Code: Select all

cd \var\log
folder strukture:

cd \[foldername] dos NOT work only cd [foldername] does....
if you start with a \ you have to give the complete path!

example:
you are in folder d:\downloads and want to change to d:\downloads\some\files you have to use cd some\files
you are in folder d:\downloads and want to change to d:\work\recent you have to use cd \work\recent
\ after cd means you start from drive root.

Re: Extended CD command

Posted: 2023-05-14, 08:08 UTC
by igarny
2Fla$her
2Sir_SiLvA

Please check this post: viewtopic.php?t=77829&start=15#p431185

2Sir_SiLvA
example:
you are in folder d:\downloads and want to change to d:\downloads\some\files you have to use cd some\files
you are in folder d:\downloads and want to change to d:\work\recent you have to use cd \work\recent
\ after cd means you start from drive root.
definitely your examples do not match my use case: viewtopic.php?t=77829#p431162

Re: Extended CD command

Posted: 2024-10-09, 14:11 UTC
by Fla$her
A small but nice part from the requested list:
20.08.24 Added: Change directory via "cd" command: Append \: to go to the parent and place cursor on directory or archive, e.g. cd c:\windows\system32\: (32/64)
And with archives it worked before.

Re: Extended CD command

Posted: 2024-10-09, 14:38 UTC
by ghisler(Author)
It was a coincidence that it already worked with archives - TC would try to open
c:\path\archive.zip\:
as a directory and fail. Then it would try opening
c:\path\archive.zip
as a directory (not archive!) and fail too. Then finally it would try opening
c:\path
and succeed. Now this has been implemented to directly go to c:\path instead
and set cursor on the archive.zip file.

Re: Extended CD command

Posted: 2024-10-09, 14:49 UTC
by Fla$her
Yes, I understood that it worked because of a fail, but it worked nonetheless. Thanks for the folder anyway!
I hope you will still mature to the rest of the wishes from the list.

Re: Extended CD command

Posted: 2024-10-10, 14:26 UTC
by sa16
20.08.24 Added: Change directory via "cd" command: Append \: to go to the parent and place cursor on directory or archive, e.g. cd c:\windows\system32\: (32/64)
Does not work with relative paths, e.g. cd Language\:. Is that how it should be?

Re: Extended CD command

Posted: 2024-10-11, 08:52 UTC
by ghisler(Author)
No, it only works with absolute paths.

Re: Extended CD command

Posted: 2024-11-08, 16:03 UTC
by sa16
2ghisler(Author)
It would be useful to reflect in the Help new features of the cd command:
Append \: to go to the parent and place cursor on directory or archive, e.g. cd c:\windows\system32\: (32/64)
and existing limitations:
only works with absolute paths

Re: Extended CD command

Posted: 2025-03-22, 06:46 UTC
by igarny
Hey guys

I would like to again support the proposal of *Fla$her in this topic.

I am not sure how this would work, but I imagine the solution as an upgrade or a step further of the implementation currently applied for the cm_CompareFilesByContent command

there just needs to be a way to replicate the same solution but for a given by a variable path string and instead of opening it to be able to just pin it in the destination panel.

I suppose there is a challenge... after all the list of objects in the panel is provided by a third party... the plugin, which is difficult to control
so my hope is that TC can traverse the path as it does with the internal command and then get a list and not just the content of the file for the comparison.