[solved] Command line only working in Left-side directory

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
azumanga
Junior Member
Junior Member
Posts: 6
Joined: 2024-09-05, 10:43 UTC

[solved] Command line only working in Left-side directory

Post by *azumanga »

Any directory path inputted into the command line will only appear on the directory on the left, no matter what directory I have selected. Even when I have the right-side directory selected it always appears on the left without an obvious way to switch between them.
Is there a shortcut I'm missing? I can't find anything in the command line keyboard shortcuts in Help so I'm a little stumped.
Last edited by azumanga on 2024-09-09, 09:53 UTC, edited 1 time in total.
User avatar
nsp
Power Member
Power Member
Posts: 1847
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Command line only working in Left-side directory

Post by *nsp »

just give a look to the help of TC. Search and find "Command line parameters" you will have all you need. You also have example at the end of the help page.
User avatar
petermad
Power Member
Power Member
Posts: 15263
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Command line only working in Left-side directory

Post by *petermad »

2azumanga
If you enter a directory path in the command line and press enter that directory will be opened in Windows Explorer.

What do you mean when you say that the directory "appears" on the left? - Do you mean that the panel on the left goes into that directory, or that it places the cursor on that directory if it is on the list? Or do you mean that the directory is created one the left side?

And what is it exactly you want to accomplish.

If you want to jump to a directory via the command line, you have to precede the directory path with cd: like cd c:\windows and the directory will be opened in the side that was active before you started typing in the command line
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
azumanga
Junior Member
Junior Member
Posts: 6
Joined: 2024-09-05, 10:43 UTC

Re: Command line only working in Left-side directory

Post by *azumanga »

petermad wrote: 2024-09-08, 08:11 UTC 2azumanga
If you enter a directory path in the command line and press enter that directory will be opened in Windows Explorer.

What do you mean when you say that the directory "appears" on the left? - Do you mean that the panel on the left goes into that directory, or that it places the cursor on that directory if it is on the list? Or do you mean that the directory is created one the left side?
In the little command line thing under the two file windows that allows you to quickly go to any directory. not the command prompt if thats what you are thinking of.
petermad wrote: 2024-09-08, 08:11 UTC And what is it exactly you want to accomplish.
What I'm trying to accomplish is being able to change the directory via this command line in the right file window. No matter what I do I can only change it in the left file window, unless I'm missing something in the Help index.
petermad wrote: 2024-09-08, 08:11 UTC If you want to jump to a directory via the command line, you have to precede the directory path with cd: like cd c:\windows and the directory will be opened in the side that was active before you started typing in the command line
I think thats done internally? unless you're refering to the command prompt.

I can try and create a gif to explain it to you visually if this doesn't clear things
User avatar
white
Power Member
Power Member
Posts: 4980
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Command line only working in Left-side directory

Post by *white »

azumanga wrote: 2024-09-08, 11:45 UTC In the little command line thing under the two file windows that allows you to quickly go to any directory. not the command prompt if thats what you are thinking of.
The purpose of the little command line thing is not to quickly go to any directory, it's to execute commands. If you want to change directory, you need to use the cd command as explained by petermad.
azumanga wrote: 2024-09-08, 11:45 UTC
petermad wrote: 2024-09-08, 08:11 UTC If you want to jump to a directory via the command line, you have to precede the directory path with cd: like cd c:\windows and the directory will be opened in the side that was active before you started typing in the command line
I think thats done internally?
Not it's not done internally, you have to type the cd command.
It's possible though, that you changed the Windows registry to open a directory in Total Commander when you execute a directory. That may be why the left panel always changes. Is that the case?
User avatar
Hacker
Moderator
Moderator
Posts: 13136
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Command line only working in Left-side directory

Post by *Hacker »

azumanga,
white wrote: 2024-09-08, 12:29 UTC The purpose of the little command line thing is not to quickly go to any directory, it's to execute commands. If you want to change directory, you need to use the cd command as explained by petermad.
Or you can use the little path showing thingy above each of the two file windows to quickly go to any directory by entering a path.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
petermad
Power Member
Power Member
Posts: 15263
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Command line only working in Left-side directory

Post by *petermad »

I think azumanga is maybe referring to the Quick search dialog when he is talking about the Command line.

See: https://tcmd.madsenworld.dk/commandline1.png

If in doubt of the terminology see the Help: https://tcmd.madsenworld.dk/commandline2.png

azumanga wrote: 2024-09-08, 11:45 UTCI can try and create a gif to explain it to you visually if this doesn't clear things
Yes please
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
azumanga
Junior Member
Junior Member
Posts: 6
Joined: 2024-09-05, 10:43 UTC

Re: Command line only working in Left-side directory

Post by *azumanga »

petermad wrote: 2024-09-08, 19:22 UTC I think azumanga is maybe referring to the Quick search dialog when he is talking about the Command line.

See: https://tcmd.madsenworld.dk/commandline1.png

If in doubt of the terminology see the Help: https://tcmd.madsenworld.dk/commandline2.png
I am referring to the command line in the image you sent.
petermad wrote: 2024-09-08, 19:22 UTC
azumanga wrote: 2024-09-08, 11:45 UTCI can try and create a gif to explain it to you visually if this doesn't clear things
Yes please
Image: https://i.imgur.com/tNWlUDw.gif
white wrote: 2024-09-08, 12:29 UTC The purpose of the little command line thing is not to quickly go to any directory, it's to execute commands. If you want to change directory, you need to use the cd command as explained by petermad.
Is the command line really for executing commands? I merely thought it was some sort of way to quickly cd to directories, in that case my mistake.
User avatar
Dalai
Power Member
Power Member
Posts: 9578
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Command line only working in Left-side directory

Post by *Dalai »

azumanga wrote: 2024-09-08, 20:14 UTCIs the command line really for executing commands? I merely thought it was some sort of way to quickly cd to directories [...]
It can be used for both. There are several other ways to quickly navigate to other directories: directory hotlist (Ctrl+D), breadcrumb bar, directory history (Alt+Down), button bar and so on. Some of these can also be used to execute commands.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Dalai
Power Member
Power Member
Posts: 9578
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Command line only working in Left-side directory

Post by *Dalai »

Here's what TC does by default (and without any Registry modification):

Code: Select all

"C:\Program Files"
will make TC open an Explorer window with that directory.

Code: Select all

cd "C:\Program Files"
will make TC open that directory in the active TC panel.

Since your GIF clearly shows that the former opens the directory in TC, the only conclusion I can make is that you've probably modified Windows Registry to make the system open directories in TC. This is what gets in the way of opening the directory typed in TC's right hand side panel. You can work around this by using the latter command form (with the preceding "cd ").
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
azumanga
Junior Member
Junior Member
Posts: 6
Joined: 2024-09-05, 10:43 UTC

Re: Command line only working in Left-side directory

Post by *azumanga »

Dalai wrote: 2024-09-08, 20:39 UTC Since your GIF clearly shows that the former opens the directory in TC, the only conclusion I can make is that you've probably modified Windows Registry to make the system open directories in TC. This is what gets in the way of opening the directory typed in TC's right hand side panel. You can work around this by using the latter command form (with the preceding "cd ").
Yes this is what I did. I changed the registry after downloading TC so that it opens in TC instead.
the cd command you sent seems to behave as I expected. I will try using that from now on if there isn't a way to fix it without reverting the registry changes.
User avatar
white
Power Member
Power Member
Posts: 4980
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Command line only working in Left-side directory

Post by *white »

azumanga wrote: 2024-09-08, 20:14 UTC Is the command line really for executing commands? I merely thought it was some sort of way to quickly cd to directories, in that case my mistake.
Yes really. That's why it is called Command line. :)
To type in a directory you would normally click behind the path just above the file panel. Or put the cursor on the ".." entry and press Shift+F6. Or click the path above the file panel (or press Alt+F11 or Alt+F12) and then press Shift+F6. Or assign a hotkey or button to the command cm_EditPath and use that.

But executing a folder would normally open Windows Explorer, so it seems your Windows registry settings were altered to use Total Commander instead. If that is the case, the parameter /S should be added to open the directory in the source panel rather than the left panel.
azumanga
Junior Member
Junior Member
Posts: 6
Joined: 2024-09-05, 10:43 UTC

Re: Command line only working in Left-side directory

Post by *azumanga »

white wrote: 2024-09-08, 20:49 UTC
azumanga wrote: 2024-09-08, 20:14 UTC Is the command line really for executing commands? I merely thought it was some sort of way to quickly cd to directories, in that case my mistake.
Yes really. That's why it is called Command line. :)
To type in a directory you would normally click behind the path just above the file panel. Or put the cursor on the ".." entry and press Shift+F6. Or click the path above the file panel (or press Alt+F11 or Alt+F12) and then press Shift+F6. Or assign a hotkey or button to the command cm_EditPath and use that.
Oh...
I didn't know you could that. hahaha....
It makes sense though, I'm just used to cd-ing directories in programs like Midnight commander via the command line. I guess I don't have to do that anymore :lol:
Thanks a bunch for the help though I really appreciate it
Post Reply