Page 1 of 1

Can we support the . (dot) command line parameter to have totalcmd64 start with current directory?

Posted: 2022-10-11, 09:32 UTC
by Gert
Hi,
I have added c:\totalcmd to my PATH variable and can thus start Totalcmd64 in any folder from a dos terminal window.
I would like top open totalcmd64 in the current folder, but it seems not possible.
I tried:
Open dos terminal
navigate to d:\my\deep\folder\with\many\files via:
d:
cd d:\my\deep\folder\with\many\files
totalcmd64 .
totalcmd64 /L .

both seemed to ignore the . argument being the current folder.
Is there maybe another way to do this?

Thanks for your time.

Re: Can we support the . (dot) command line parameter to have totalcmd64 start with current directory?

Posted: 2022-10-11, 09:52 UTC
by white
totalcmd64 "%cd%"

Re: Can we support the . (dot) command line parameter to have totalcmd64 start with current directory?

Posted: 2022-10-12, 09:24 UTC
by Gert
Thanks @white, it worked without quotes as well for me as I had no white space in path and filename. I am a lazy typist, a single dot would still have my preference but maybe that is not the standard way to pass arguments, although creating a file dot (.) or dot dot (..) file is not allowed by notepad as they are in fact folders.

Re: Can we support the . (dot) command line parameter to have totalcmd64 start with current directory?

Posted: 2022-10-12, 09:35 UTC
by Stefan2
Gert wrote: 2022-10-12, 09:24 UTC a single dot would still have my preference but maybe that is not the standard way to pass arguments,
however, this "totalcmd64 . " is a well know syntax for many text editor and other tools (many in unix environment but nowadays since years on win too)
And it would be fine if TC also would process that, as it may be just expected to work that way.


Gert wrote: 2022-10-12, 09:24 UTC although creating a file dot (.) or dot dot (..) file is not allowed by notepad as they are in fact folders.
. and .. are no real folders but a representation of the current path, or the parent path respectively,
which the interpreter (e.g. cmd.exe and TC) knows what to do with.





  

Re: Can we support the . (dot) command line parameter to have totalcmd64 start with current directory?

Posted: 2022-10-12, 10:04 UTC
by white
Gert wrote: 2022-10-12, 09:24 UTC I am a lazy typist..
Perhaps you should create a tc.cmd file.
Gert wrote: 2022-10-12, 09:24 UTC ..a single dot would still have my preference but maybe that is not the standard way to pass arguments, although creating a file dot (.) or dot dot (..) file is not allowed by notepad as they are in fact folders.
TC doesn't support relative paths as parameters, as can be seen in the help. It explicitly states "Always specify the full path name including the drive!".