how to create a direct access to a folder

English support forum

Moderators: Hacker, petermad, Stefan2, white

Yo230
Junior Member
Junior Member
Posts: 9
Joined: 2025-04-14, 13:25 UTC

how to create a direct access to a folder

Post by *Yo230 »

Hello,

Actually at the top left of TC we have a drop down menu with "C".
At the right of this drop down menu ("C"), I would like to add a button to access directly to the "Download" folder.
How to do it ?
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3377
Joined: 2003-05-06, 11:46 UTC

Re: how to create a direct access to a folder

Post by *Sir_SiLvA »

Thats what the Directory Menu is for which is opened by pressing CTRL+D.

Press CTRL+D -> Config -> press Add -> use "&Download" as title, press ok and then enter "cd <path to download>" (normaly C:\Users\<your username>\Downloads\ if you havent moved it) in the command field and press ok again.

Now you can access the Download folder by pressing CTRL+D and presssing D.

HTH
Hoecker sie sind raus!
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6950
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: how to create a direct access to a folder

Post by *Horst.Epp »

Drag and drop a folder to the button bar.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
Yo230
Junior Member
Junior Member
Posts: 9
Joined: 2025-04-14, 13:25 UTC

Re: how to create a direct access to a folder

Post by *Yo230 »

Sir_SiLvA wrote: 2025-04-14, 17:01 UTC and then enter "cd <path to download>" (normaly C:\Users\<your username>\Downloads\ if you havent moved it)
About the "download" folder path, you are talking about a path like this : "C:\Users\<your username>\Downloads\".
But in TC main window, the path for "downloads" is : "\\Téléchargements\". Why it is not begining by "C\Users ..." ?
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: how to create a direct access to a folder

Post by *petermad »

But in TC main window, the path for "downloads" is : "\\Téléchargements\". Why it is not begining by "C\Users ..." ?
Because "\\Téléchargements\" is a virtual folder
You can go directly to the virtual folder with the command

Code: Select all

cd ::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{374DE290-123F-4565-9164-39C4925E467B}
You can go directly to the physical folder "C:\Users\<your username>\Downloads\" with the command:

Code: Select all

cd %$Downloads%
I recommend not using the virtual folder -TC have very limited rights in virtual folders.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Yo230
Junior Member
Junior Member
Posts: 9
Joined: 2025-04-14, 13:25 UTC

Re: how to create a direct access to a folder

Post by *Yo230 »

petermad wrote: 2025-04-15, 10:39 UTC I recommend not using the virtual folder -TC have very limited rights in virtual folders.
I have seen that I had saved several virtual folders inside TC/Hotlist. So in order to use physical folders only in the hotlist, I tried to find their path.
My goal was to find something begining by : " C\Users\[username]\ ... ". So I have found it for :
— Downloads : C\Users\[username]\Downloads
— But for the Desktop I have tried to write C\Users\[username]\Desktop, but it does not works. Why ? I have only found : C\Users\[username]\OneDrive\Desktop that is working.
— Idem for Documents : I have found only : C\Users\[username]\OneDrive\Documents
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: how to create a direct access to a folder

Post by *beb »

2Yo230
Open Windows registry (regedit.exe),
Follow these paths:

Code: Select all

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
There, you will see where all the user folders actually reside (Shell Folders uses literal paths syntax; User Shell Folders uses variable-based paths syntax).
For the folders in question, regarding usage frequency, it may be worth adding their dedicated buttons right to the main toolbar:

Code: Select all

TOTALCMD#BAR#DATA
cd %$Desktop%

imageres.dll,174
Desktop

0
-1

Code: Select all

TOTALCMD#BAR#DATA
cd %$Documents%

imageres.dll,107
Documents

0
-1

Code: Select all

TOTALCMD#BAR#DATA
cd %$Downloads%

imageres.dll,175
Downloads

0
-1
Total Commander has special variables for said folders: %$Desktop%, %$Documents%, %$Downloads% (the naming is self-explanatory).
Note regarding Desktop:
Usually, what you see on your desktop is a combination of two folders' contents: your personal user desktop folder and a common all-users desktop folder. The latter contains nothing useful (if anything at all, except maybe a couple of the common apps shortcuts), so we can ignore it and use the former one (your personal) that is returned by the %$Desktop% variable.
Yo230 wrote: 2025-04-15, 17:04 UTC ...\OneDrive\Documents
That it because you have opted for (knowingly or not) the backup of some basic folders like that in the cloud (Microsoft dubbed them as 'important' in the OneDrive settings [see 'OneDrive - Settings - Sync and backup' or 'Start - Settings - Update & Security - Files backup - Backup files to OneDrive']) (then such folders are physically moved to the cloud folder).
Last edited by beb on 2025-04-16, 03:44 UTC, edited 1 time in total.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: how to create a direct access to a folder

Post by *petermad »

2Yo230
— But for the Desktop I have tried to write C\Users\[username]\Desktop, but it does not works
You are missing the colon after C so try C:\Users\[username]\Desktop

These should all work too:

Code: Select all

cd %USERPROFILE%\Desktop
cd C:\Users\%USERNAME%\Desktop
cd C:\%HOMEPATH%\Desktop
cd %HOMEDRIVE%\%HOMEPATH%\Desktop
cd %HOMEDRIVE%\Users\%USERNAME%\Desktop
cd %SYSTEMDRIVE%\%HOMEPATH%\Desktop
cd %SYSTEMDRIVE%\Users\%USERNAME%\Desktop

cd %$DESKTOP% (in TC only)
cd %${B4BFCC3A-DB2C-424C-B029-7FE99A87C641}% (TC only)


You can run this command (from TC's command line):

Code: Select all

hh.exe %COMMANDER_PATH%\TOTALCMD.CHM::env_vars.htm
to read more about environment variables
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
beb
Power Member
Power Member
Posts: 579
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: how to create a direct access to a folder

Post by *beb »

petermad wrote: 2025-04-16, 03:43 UTC These should all work too:
...
That's a pretty brave suggestion. None of them would ever work for me (except the TC ones). Not all users are the same :)
They would work for most users most of the time, though.

Note. E.g. if their personal Desktop is in their personal cloud, "%OneDrive%\Desktop" might work.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: how to create a direct access to a folder

Post by *petermad »

None of them would ever work for me
How come? Maybe not the ones starting with C:\ if your Windows is not installed on C:
And the ones with \Users would not work on Windows XP.

But:

Code: Select all

cd %USERPROFILE%\Desktop
cd %HOMEDRIVE%\%HOMEPATH%\Desktop
cd %SYSTEMDRIVE%\%HOMEPATH%\Desktop
should work for all - at least from Windows XP and forward.


Not all users are the same
This was an answer to Yo230 who obviously has his Windows installed on C: and is not Using XP (mentioning "\Users" and not "\Documents and Settings")
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Yo230
Junior Member
Junior Member
Posts: 9
Joined: 2025-04-14, 13:25 UTC

Re: how to create a direct access to a folder

Post by *Yo230 »

petermad wrote: 2025-04-16, 03:43 UTC You are missing the colon after C so try C:\Users\[username]\Desktop
I have tried 2 things for desktop :
1) under the button C, in the address bar I entered "C:\Users\[username]\Desktop" and clicked Enter key.
Result : nothing happens (the desktop is not displayed).

2) As I had saved in Hotlist the "desktop" like that : "C:\Users\[username]\OneDrive\Desktop", I gone in Hotlist/Config/Desktop and put in the setting :
— cd C:\Users\[username]\Desktop : result : in the address bar it gives me "C:\Users\[username]\"
— cd %$Desktop% : result : in the address bar it gives me "C:\Users\[username]\OneDrive\Desktop"
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: how to create a direct access to a folder

Post by *petermad »

2Yo230
cd %$Desktop% : result : in the address bar it gives me "C:\Users\[username]\OneDrive\Desktop"
It looks like there is something really wrong with you Windows installation.

How about if you navigate to your user profile folder. In TC go to the root of drive C: - then double click on Users - and thereafter double-click on your username. Do you not see a folder named Desktop there?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: how to create a direct access to a folder

Post by *Dalai »

Is it possible that using a Microsoft account causes this so that the usual locations for system directories are redirected to OneDrive and every change to the profile (e.g. desktop, start menu, %AppData%) is synched via OneDrive to the MS account? I have no idea really how Microsoft accounts work, or OneDrive for that matter. It's just a guess.
#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
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: how to create a direct access to a folder

Post by *petermad »

Maybe it is a Window 11 thing??
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Yo230
Junior Member
Junior Member
Posts: 9
Joined: 2025-04-14, 13:25 UTC

Re: how to create a direct access to a folder

Post by *Yo230 »

petermad wrote: 2025-04-16, 14:42 UTC How about if you navigate to your user profile folder. In TC go to the root of drive C: - then double click on Users - and thereafter double-click on your username. Do you not see a folder named Desktop there?
If I go to C:\Users\[username]\, I don't see any "Desktop" here.
Is it possible to force Windows to do not use OneDrive for the desktop, in order to have something like "C:\Users\[username]\Desktop" ?
Post Reply