Extended CD command

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Extended CD command

Post 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
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Extended CD command

Post 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
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3377
Joined: 2003-05-06, 11:46 UTC

Re: Extended CD command

Post by *Sir_SiLvA »

and why do you need tcfs2 when that works with cd var\log just fine?
Hoecker sie sind raus!
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Extended CD command

Post by *Fla$her »

2igarny
I don't see the answer to the question about the server. I asked it for a reason.
Overquoting is evil! 👎
User avatar
LonerD
Senior Member
Senior Member
Posts: 381
Joined: 2010-06-19, 20:18 UTC
Location: Makeyevka/Makiivka
Contact:

Re: Extended CD command

Post by *LonerD »

Support !
"I used to feel guilty in Cambridge that I spent all day playing games, while I was supposed to be doing mathematics. Then, when I discovered surreal numbers, I realized that playing games IS math." John Horton Conway
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Extended CD command

Post 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
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3377
Joined: 2003-05-06, 11:46 UTC

Re: Extended CD command

Post 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.
Hoecker sie sind raus!
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Extended CD command

Post 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
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Extended CD command

Post 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.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Extended CD command

Post 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.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Extended CD command

Post 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.
Overquoting is evil! 👎
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: Extended CD command

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Extended CD command

Post by *ghisler(Author) »

No, it only works with absolute paths.
Author of Total Commander
https://www.ghisler.com
sa16
Senior Member
Senior Member
Posts: 324
Joined: 2021-09-10, 07:15 UTC

Re: Extended CD command

Post 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
igarny
Junior Member
Junior Member
Posts: 74
Joined: 2023-01-26, 19:01 UTC

Re: Extended CD command

Post 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.
Post Reply