简体   繁体   English

从CMDER在TotalCommander中打开当前目录(创建别名)

[英]Open current directory in TotalCommander from CMDER (creating alias)

I want to create an alias for the CMDER command line which would open my TotalCommander in the current directory. 我想为CMDER命令行创建一个别名,该别名将在当前目录中打开TotalCommander。 This would be the equivalent for explorer . 这对于explorer .是等效的explorer . command. 命令。

My alias now looks like this: 我的别名现在看起来像这样:

open. = "C:\...\Totalcmd.exe /O /R=".

But it just opens TotalCommander int he default directory. 但这只是在默认目录中打开TotalCommander。

Maybe someone uses such alias and knows how to do that? 也许有人使用这样的别名并且知道该怎么做?

I've got this working. 我已经做好了。

Try setting your alias as follows: 尝试如下设置别名:

tc.=d:\...\TOTALCMD64.EXE /O /R="%CD%"

Be careful though, you have to insert it manually into the aliases file. 但是请注意,您必须手动将其插入别名文件。 If you do this from command line it will evaluate %CD% (current directory) at the moment of setting the alias. 如果从命令行执行此操作,它将在设置别名时评估%CD%(当前目录)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM