[solved] TC 9.51 - SAVESELECTION and SAVEDETAILS saves to wrong dir.

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[solved] TC 9.51 - SAVESELECTION and SAVEDETAILS saves to wrong dir.

Post by *petermad »

If I use the two new commands SAVESELECTION <filename> and SAVEDETAILS <filename> and don't enter a ful path for the filename, the file is not necessarily saved to the current directory - it is saved to the last opened directory in either of the two file panels.

Example:
Make these two buttons:

Code: Select all

TOTALCMD#BAR#DATA
SAVESELECTION myfile

wcmicons.dll,43
Save selection to myfile


-1
and

Code: Select all

TOTALCMD#BAR#DATA
SAVEDETAILS myfile

wcmicons.dll,43
Save selection to myfile - details


-1
Make directories c:\test1, c:\test2 and file c:\test2\test.txt

Start with TC with these panels:
Left side: c:\
Right side: c:\test2

Open c:\test1 in Left side (so c:\test1 will be the last opened dir)
Mark test.txt in c:\test2 (in the Right side)
Click one of the buttons
The file myfile is created in c:\test1 and not in c:\test2 as expected

Now in the Right side go back to c:\ and then into c:\test2 again (so c:\test2 is the last opened dir)
Mark test.txt in c:\test2 again
Click one of the buttons
The file myfile is now created in c:\test2 as expected

So myfile is always created in the last opened directory - this is also true if the last opened directory is on another drive than the one where the files are selected -and it is also true if Right and Left is reversed in the tests above (file selection is done in the Left side).
Last edited by petermad on 2019-10-31, 03:24 UTC, edited 1 time in total.
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.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.51 - SAVESELECTION and SAVEDETAILS saves to wrong dir.

Post by *ghisler(Author) »

When you don't specify a path, it is saved to whichever is the current directory.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.51 - SAVESELECTION and SAVEDETAILS saves to wrong dir.

Post by *petermad »

Could it please be changed to to whichever is the current directory in the ACTIVE file panel?
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.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: TC 9.51 - SAVESELECTION and SAVEDETAILS saves to wrong dir.

Post by *ghisler(Author) »

OK, I will change it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: TC 9.51 - SAVESELECTION and SAVEDETAILS saves to wrong dir.

Post by *petermad »

Confirmed fixed in TC 9.5b3 :-)
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.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply