Create Shortcut + G modifier fail

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Create Shortcut + G modifier fail

Post by *Sombra »

The following happens to me when I try to create a shortcut with parameters. The command fails when I use it together with the "G" modifier and in wincmd.ini is set the option alwayscopyinbackground=2
For example, maybe you can test it using the button below with and without the "G".

Code: Select all

TOTALCMD#BAR#DATA
cm_CreateShortcut
/GO5T="%|$DESKTOP|*.*.lnk"
wcmicons.dll,65
Create a desktop shortcut


-1
Tested on TC64 v11.0, Windows 10 22H2.
User avatar
petermad
Power Member
Power Member
Posts: 15479
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Create Shortcut + G modifier fail

Post by *petermad »

2Sombra

I just tried your button together with alwayscopyinbackground=2 with TC 11.00 x64 under Windows 10 and 7 - and it works fine.

What kind of files and in which location are you trying to make links to?
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 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
sa16
Senior Member
Senior Member
Posts: 251
Joined: 2021-09-10, 07:15 UTC

Re: Create Shortcut + G modifier fail

Post by *sa16 »

2Sombra
Confirmed. TC11.00 x32. The bug is somehow connected (similar) to this.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49100
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Create Shortcut + G modifier fail

Post by *ghisler(Author) »

Confirmed. Please change the parameters to:
/GB0O5T="%|$DESKTOP|*.*.lnk"
This tells TC to create the shortcut in the foreground. B1 although works.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 15479
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Create Shortcut + G modifier fail

Post by *petermad »

How come that /GO5T="%|$DESKTOP|*.*.lnk" works for me then?

I have tested in both 32bit and 64bit TC with both with AlwaysCopyInBackground=2 and AlwaysCopyInBackground=1

I also tested wit clean .ini with only AlwaysCopyInBackground=2 added.

Also /GB2O5T="%|$DESKTOP|*.*.lnk" works fine for me.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 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
sa16
Senior Member
Senior Member
Posts: 251
Joined: 2021-09-10, 07:15 UTC

Re: Create Shortcut + G modifier fail

Post by *sa16 »

petermad wrote:How come that /GO5T="%|$DESKTOP|*.*.lnk" works for me then?
In my case, the file itself is copied, while .lnk is added to its name.
User avatar
petermad
Power Member
Power Member
Posts: 15479
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Create Shortcut + G modifier fail

Post by *petermad »

sa16 wrote: 2023-08-09, 16:03 UTC
petermad wrote:How come that /GO5T="%|$DESKTOP|*.*.lnk" works for me then?
In my case, the file itself is copied, while .lnk is added to its name.
I see that now - I never thought of checking whether the created file was a real .lnk file. I can confirm the problem too now.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 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
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Re: Create Shortcut + G modifier fail

Post by *Sombra »

ghisler(Author) wrote: 2023-08-09, 14:05 UTCPlease change the parameters to:
/GB0O5T="%|$DESKTOP|*.*.lnk"
Ok, that does the job. Thanks.
petermad wrote: 2023-08-09, 14:48 UTCHow come that /GO5T="%|$DESKTOP|*.*.lnk" works for me then?
As sa16 wrote for files, also for directory shortcuts (where it's a bit tedious when the directory contains several Gb)
Thanks for testing.
User avatar
Sombra
Power Member
Power Member
Posts: 811
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Re: Create Shortcut + G modifier fail

Post by *Sombra »

Fixed here in TC 11.01 RC1, thanks.
User avatar
white
Power Member
Power Member
Posts: 5174
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Create Shortcut + G modifier fail

Post by *white »

Moderator message from: white » 2023-08-21, 16:53 UTC

Moved to Fixed bugs.
Post Reply