SyMenu Forum

SyMenu

 

HomeTroubleshooting & Bug Reports

If you found a bug post here your report.

Absolute path with direct link folder Messages in this topic - RSS

xavi
xavi
Posts: 7


13/11/2021
xavi
xavi
Posts: 7
Hello Gianluca,


I use symenu with my pendrive and i want to create some folders with direct link. The problem is that i must use an absolute path, because in on of my computers , for example, the Download location is C:\Users\Username\Downloads, but in other pc , i have changed the default windows path to d:\Downloads.

I tryed to used this path:

%systemdrive%\Users\%username%\Downloads

It works right in the default download location but not in the pc with changed location.

I believed it was a windows malfunction related with the changed location, but i tryed the same scenario with another software that are in symenu suite: QuickAccessPopup. It works well with that path in both computers.

Can I try something else? Or help you solve it in some way even though I don't know how to program ...

I wanted to integrate the same QuickAccessPopup folder functions with symenu and have everything integrated into a single solution.I would be great.

Many thanks
link
Gianluca
Gianluca
Administrator
Posts: 1274


14/11/2021
Gianluca
Gianluca
Administrator
Posts: 1274
Hi xavi,
Welcome to the forum.

If you try to open a command shell and write this command on it:
cd %systemdrive%\Users\%username%\Downloads
the shell will reply this way:
The system cannot find the path specified.
This is the reason because SyMenu is not able to solve the path.

If you try to write this one instead:
cd %systemdrive%\Users\%username%
the shell will open your user folder a so will SyMenu.

Now try to search inside the above folder and you'll notice that no Download folder exists (anymore), neither as real folder, nor as a shortcut to another folder. That's because you redefine the path for it and its location is now D:\Downloads. BTW, it's the same path I redefine for my computers.

When you ask Windows to expand an environment variable such as %systemdrive% or %username% it can only expand that variable and can't understand that your target is some other folder. Windows can't do magic, in fact, in this case, it uses the registry and not the FS to read redefined special folders paths such as Documents, Download, Desktop, Music, Pictures, Videos...

Now let's see what you can do to workaround this problem.
IMHO the easiest way is creating a symbolic link to the lost Download folder inside your %systemdrive%\Users\%username% folder.
You can use a program for this or the Windows command MKLINK (https://ss64.com/nt/mklink.html).
With a symbolic link you restore the lost link and the command shell and SyMenu are now able to work again.


The last one now.
Why QuickAccessPopup works well?
I don't know. It probably understands what you are searching for, reads the Windows registry to decode your request, returns the right folder path.

Please let us know if the workaround solves your issue because I suspect it could be useful for a lot of users.
link
xavi
xavi
Posts: 7


14/11/2021
xavi
xavi
Posts: 7
Hello,

Indeed, the tests that you suggest to do give the expected result that you have announced.

It is true that you could create a folder with the actual path d: \ Downloads and problem solved. But as you can imagine, I only want to have a single Downloads folder in symenu for all computers. If it wasn't possible, then I add two Downloads folders and that's it.

By the way, the mklink command you have suggested has worked perfectly. I knew it but didn't remember it smile It was great to be able to fix it.

Thank you very much for your interest and speed in answering.
link



UGMFree © 2002-2024
PayPal BTC TON