File and Folder together for internal association

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

File and Folder together for internal association

Post by *msrox »

I have created an internal association (verb=zip) that will compress files or folders.

If I choose couple of files and right-click->zip, the zipped file would be created. Same applied to couple of folders.

BUT, when I select a file and a folder together, then there is no zip in right-click.

How I can make TC to accept files and folders in Internal Association?
Thanks
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

Cannot confirm using TC 7.57a and TC 8.0 beta 24 32-bits. What version are you using?
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

I am using TC 7.57a
sorry for the late reply. the reason was that I haven't received any notification for your reply.
look forward to hearing from you regarding my issue.
thanks,
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Maybe you can simply create buttonbar button or usercommand to be placed into main menu? It will work with selection.
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

2msrox
What is the file type ("Type name" in the Edit file type dialog) you use for the internal association?

What is your OS?
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

to MVV:
I have already created buttons, but I was wondering if I can do it without using mouse as I am using keyboard all the time!

to white:
I have several internal associations. fo each of them I have defined an action called "Zip" with this command:

c:\AutoIt\AutoIt3.exe "c:\AutoIt\Scripts\zip.au3" "%2"

this works if I have same file types selected in TC e.g. jpg files. But once I select different file types like jpg and txt of combination of file and folders, then Zip action wont appear in righ click menu anymore, and I have to use the button I have created for this purpose. Any solution is highly appreciated? thanks in advance.

BTW, my OS is win7.
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

msrox wrote:to white:
I have several internal associations. fo each of them I have defined an action called "Zip" with this command:

c:\AutoIt\AutoIt3.exe "c:\AutoIt\Scripts\zip.au3" "%2"

this works if I have same file types selected in TC e.g. jpg files. But once I select different file types like jpg and txt of combination of file and folders, then Zip action wont appear in righ click menu anymore...
If you select multiple files or folders with different internal associations the internal associations will not show up in the right click menu. That is normal. It does not make any difference if you name the action belonging to each association all Zip. Only the associations which are valid for all selected files and folders are shown.
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

msrox wrote:I have already created buttons, but I was wondering if I can do it without using mouse as I am using keyboard all the time!
See Configuration/Options/Misc. Define a hotkey or alias and attach a custom command to it (select category "usercmd.ini", hit the new button and enter the same details as the buttons you created).
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

How about this one:

Filter1=*.pdf
Filter1_open=""c:\PDF-XChange Viewer\PDFXCview\PDFXCview.exe" "%1""
Filter2=*.bmp *.jpg *.jpeg *.tiff *.tif *.gif *.png *.emf *.wmf *.cr2 *.svg *.jp2
Filter2_open=""c:\FastStone Image Viewer\FSViewer\FSViewer.exe" "%1""
Filter3=*.*
Filter3_Zip=c:\AutoIt\AutoIt3.exe "c:\AutoIt\Scripts\7-Zip\zip.au3" "%2"


this works individually for jpg or pdf files, but it does not work for both jpg and pdf files together! If I moved Filter3 to the top, then it works, but then it does not work for individual jpg or pdf files! is there any way to fix it just by using internal association?

thanks
User avatar
white
Power Member
Power Member
Posts: 6018
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

msrox wrote:this works individually for jpg or pdf files, but it does not work for both jpg and pdf files together! If I moved Filter3 to the top, then it works, but then it does not work for individual jpg or pdf files! is there any way to fix it just by using internal association?
No, this is by design. As stated in the help, Total Commander will use the filter which comes first in the list.
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

so, literally, there is no way to that in TC using interanl association! is this right?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yes, theese are type-specific ones.

But I recommend you to create user-command and assign a hotkey for it, as white suggested. So it will work w/o mouse, and you may add a hint for toolbar button with assigned hotkey. Also you can add user-command to main menu, and call it via hotkeys like Alt+underlined characters.
msrox
Member
Member
Posts: 101
Joined: 2008-03-14, 00:10 UTC

Post by *msrox »

ok, thank you for the replies.
cheers,
Post Reply