open selected files at once

English support forum

Moderators: white, Hacker, petermad, Stefan2

Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Hacker wrote: 2023-01-13, 14:47 UTC Configuration - Options - Edit/View.
right, I use uLister with F3, I didn't remember :(

so: F5" (copy), "F6" (move), "Alt+F5" (zip), F3 (preview) operate on selected files, ONLY "enter" ignores the selection.
I think it's a bit strange.
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: open selected files at once

Post by *Fla$her »

Paul Mountit wrote: 2023-01-13, 13:31 UTCI'll try this
Worked?
Paul Mountit wrote: 2023-01-13, 16:41 UTCI think it's a bit strange.
Different operations on resource intensity. And unlike opening, the rest do not assume an array of windows or instances for SDI programs, due to which the system can potentially hang.
Overquoting is evil! 👎
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Fla$her wrote: 2023-01-13, 18:56 UTC Worked?
not tried yet
Different operations on resource intensity. And unlike opening, the rest do not assume an array of windows or instances for SDI programs, due to which the system can potentially hang.
I don't understand. so Shift+F10 then enter expose the system to potential hangs?
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: open selected files at once

Post by *Fla$her »

Paul Mountit wrote: 2023-01-14, 08:03 UTCnot tried yet
This is done in 3 minutes. Is it more important for you to have empty talk or the result?
Paul Mountit wrote: 2023-01-14, 08:03 UTCI don't understand. so Shift+F10 then enter expose the system to potential hangs?
Above others have already explained about the system limit on the number of openings in this way. However, I wouldn't mind if this limit was controlled optionally through the settings and the ini key with a call to the dialog, which, when the specified limit is exceeded, asks whether to continue.
Overquoting is evil! 👎
User avatar
white
Power Member
Power Member
Posts: 4619
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: open selected files at once

Post by *white »

Moderator message from: white » 2023-01-14, 10:03 UTC

Fla$her wrote: 2023-01-14, 09:05 UTC This is done in 3 minutes. Is it more important for you to have empty talk or the result?
Fla$her, please respect forum rules and be nice to each other.

It is perfectly fine for any user to ignore a post or even all posts from a user (that's what the "Add foe" feature is for).

Edit:
Comment by Fla$her deleted. Please respect forum rules / moderator guidelines:
If you want to comment on a moderator's comment or action please send him an email.
Feel free to discuss moderation in general on this board in a thread about that subject.
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: open selected files at once

Post by *Usher »

Paul Mountit wrote: 2023-01-13, 10:20 UTC
Usher wrote: 2023-01-13, 02:38 UTC https://support.microsoft.com/en-us/help/2022295/context-menus-are-shortened-when-more-than-15-files-are-selected
MS Support wrote: Context menus are shortened when more than 15 files are selected
This is by design. These context menu items won't appear if selecting more than 15 items to avoid accidentally performing these actions on a large number of files.
well, the 15 files limit with context menu sounds good. if "enter" could work the same on selected files (no more than 15) I think it would be ok.
I'm afraid that in the best case you should expect solution similar to "Configuration -> Options -> Operation -> Mouse selection mode", that is - something like:

Code: Select all

Open selection mode
(*) Open file under cursor in TC
( ) Pass selection to Windows Explorer
The second option is the same as "Open" in context menu. Other ways aren't easy to implement.
Note that current TC behaviour is backward compatible with Norton Commander so it will stay as default mode.
Andrzej P. Wozniak
Polish subforum moderator
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Fla$her wrote: 2023-01-14, 09:05 UTC This is done in 3 minutes. Is it more important for you to have empty talk or the result?
I do apologize, sometimes I have other things to do. I'm behind a firewall at office, so I can't reach the totalcmd.net.
I'll try your solution at home as soon as I find some time.
Above others have already explained about the system limit on the number of openings in this way. However, I wouldn't mind if this limit was controlled optionally through the settings and the ini key with a call to the dialog, which, when the specified limit is exceeded, asks whether to continue.
exactly what I think about it, and exactly what I proposed before. I hope it will be implemented in the next release
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Usher wrote: 2023-01-14, 18:14 UTC The second option is the same as "Open" in context menu. Other ways aren't easy to implement.
this is a perfectly accetable solution to me
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: open selected files at once

Post by *Fla$her »

Paul Mountit wrote: 2023-01-16, 18:22 UTCI'm behind a firewall at office, so I can't reach the totalcmd.net.
If you mean downloading TCFS2, then you can do it by inserting a link (https://totalcmd.net/download.php?id=tcfs2), for example, here. There is also a live link from the author to the previous version.
Paul Mountit wrote: 2023-01-16, 18:22 UTCexactly what I think about it, and exactly what I proposed before.
Indeed, proposed. Found:
Paul Mountit wrote: 2023-01-12, 15:27 UTCwell, this is easily resolved with a confirmation dialog if the files are more than 10 (or a configurable number)
Overquoting is evil! 👎
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Fla$her wrote: 2023-01-13, 12:08 UTC
Paul Mountit wrote: 2023-01-13, 10:15 UTCplease, can you share your solution?
OK. I'll give you a simple solution that only involves system associations (for internal, it's more complicated).
finally I had the time to test this solution.
it kinda work, but it seems to depend on the program.
it's ok, i.e., with txt files in notepad, or jpg in paint.net
it does not work ok with xls files in excel 2013 (the version I have): the selected files are opened correctly in the same instance (even if already running) the first time, but then it becomes impossible to open any other file, single or multiple.
I'll stick to the "shift+F10 enter" solution, wich works ok all the time.
thanks for your help!
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: open selected files at once

Post by *Fla$her »

Paul Mountit wrote: 2023-01-21, 08:33 UTCthe selected files are opened correctly in the same instance (even if already running) the first time, but then it becomes impossible to open any other file, single or multiple.
Multiple files open and then suddenly stops opening? It sounds a little weird. At what stage does this happen? Are all the selected xls files opened for the first time or only a part of them? Does it have something to do with the number of files? In case of unsuccessful attempts, there were definitely no files with extensions from internal associations in the selection?
If the code is slightly corrected, will the problem remain?

Code: Select all

'—————————————————————————————— VBS ——————————————————————————————
' Purpose: system opening of selected files
' Parameters: %WL [/max:<count>]
' /max:<count> - ask after exceeding the limit of selected objects
'—————————————————————————————————————————————————————————————————
Set A = WSH.Arguments: If A.Count = 0 Then WSH.Quit
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Shell = CreateObject("WScript.Shell")
Set List = FSO.OpenTextFile(A(0),,,-1)
If A.Named.Exists("max") Then
   List.Skip FSO.GetFile(A(0)).Size: Max = List.Line - 1
   List.Close: If Max > CDbl(A.Named.Item("max")) Then _
   If MsgBox(Max & " objects selected." & vbLf & _
   "Are you sure you want to continue?", 262436, _
   " System opening of selected files") <> 6 Then Quit
   Set List = FSO.OpenTextFile(A(0),,,-1)
End If
Set FSO = Nothing
Do: F = List.ReadLine
   If Right(F, 1) <> "\" Then Shell.Run """" & F & """"
Loop Until List.AtEndOfStream: List.Close: Quit

Sub Quit
   Set List = Nothing: Set Shell = Nothing: WSH.Quit
End Sub
Overquoting is evil! 👎
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Fla$her wrote: 2023-01-21, 09:27 UTC Multiple files open and then suddenly stops opening? It sounds a little weird. At what stage does this happen? Are all the selected xls files opened for the first time or only a part of them? Does it have something to do with the number of files? In case of unsuccessful attempts, there were definitely no files with extensions from internal associations in the selection?
I open excel
the I select some files (4 or 5)
with enter ALL the files are opened in current instance of excel
then I press enter with no selection: nothing happens
then I select just ONE file, press enter: nothing happens
then i select n files, press enter: n-1 files are opened in the current instance of excel
n.b. in my internal association list there is only the one suggested by you, no other association
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Fla$her wrote: 2023-01-21, 09:27 UTC
If the code is slightly corrected, will the problem remain?

Code: Select all

'—————————————————————————————— VBS ——————————————————————————————
' Purpose: system opening of selected files
' Parameters: %WL [/max:<count>]
' /max:<count> - ask after exceeding the limit of selected objects
'—————————————————————————————————————————————————————————————————
Set A = WSH.Arguments: If A.Count = 0 Then WSH.Quit
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Shell = CreateObject("WScript.Shell")
Set List = FSO.OpenTextFile(A(0),,,-1)
If A.Named.Exists("max") Then
   List.Skip FSO.GetFile(A(0)).Size: Max = List.Line - 1
   List.Close: If Max > CDbl(A.Named.Item("max")) Then _
   If MsgBox(Max & " objects selected." & vbLf & _
   "Are you sure you want to continue?", 262436, _
   " System opening of selected files") <> 6 Then Quit
   Set List = FSO.OpenTextFile(A(0),,,-1)
End If
Set FSO = Nothing
Do: F = List.ReadLine
   If Right(F, 1) <> "\" Then Shell.Run """" & F & """"
Loop Until List.AtEndOfStream: List.Close: Quit

Sub Quit
   Set List = Nothing: Set Shell = Nothing: WSH.Quit
End Sub
no changes, still the same beahviour: it opens n-1 files from the selection
Fla$her
Power Member
Power Member
Posts: 2299
Joined: 2020-01-18, 04:03 UTC

Re: open selected files at once

Post by *Fla$her »

2Paul Mountit
Hmm, strange. I have never encountered such a problem reading a list. Which version of Windows and TC? Can you check on the x32 version?
Overquoting is evil! 👎
Paul Mountit
Junior Member
Junior Member
Posts: 66
Joined: 2020-04-18, 21:04 UTC

Re: open selected files at once

Post by *Paul Mountit »

Fla$her wrote: 2023-01-21, 17:39 UTC 2Paul Mountit
Hmm, strange. I have never encountered such a problem reading a list. Which version of Windows and TC? Can you check on the x32 version?
win 10, tc 10.52
checked on x32 version, same as 64: opens n-1 files

anyway, shift+F10 + open works with no issues/errors
I'll make a suggestion in the appropriate forum to make it the default behaviour for enter when there is a selection of files
Post Reply