DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Open selected files from a windows folder  (Read 17,232 times)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Open selected files from a windows folder
« on: September 02, 2022, 11:20 AM »
Windows 10
open a folder
select any of the files present on that folder
click for contextual menu and have the option to open these files : subfolder, shortcuts, programs, files associated with any program present in the pc.

Do you have the script for this ?
Best Regards

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Open selected files from a windows folder
« Reply #1 on: September 02, 2022, 03:16 PM »
Just press the <Enter> key after selecting the files/folders.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open selected files from a windows folder
« Reply #2 on: September 02, 2022, 05:01 PM »
:-\
Only open one folder in the case of three shorcuts to folders.
What Am I doing wrong ?

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Open selected files from a windows folder
« Reply #3 on: September 02, 2022, 05:16 PM »
Only open one folder in the case of three shorcuts to folders.
What Am I doing wrong ?

You asked about opening files/programs, not opening folders.

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open selected files from a windows folder
« Reply #4 on: September 02, 2022, 07:31 PM »
Only open one folder in the case of three shorcuts to folders.
What Am I doing wrong ?

You asked about opening files/programs, not opening folders.
Files in a folder in the most general sense.
Excluded hidden files or system files...
:-* :P

I suppose It's not an easy task. I have tried search in web with no good result until moment.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Open selected files from a windows folder
« Reply #5 on: September 02, 2022, 08:52 PM »
Only open one folder in the case of three shorcuts to folders.
What Am I doing wrong ?

You asked about opening files/programs, not opening folders.
I don't use File Explorer, but this may be covered in the Settings / Options. You possibly have it limited to always opening in the same window?
EDIT// which would only allow one folder to open
Tom

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open selected files from a windows folder
« Reply #6 on: September 07, 2022, 07:54 AM »
Only open one folder in the case of three shorcuts to folders.
What Am I doing wrong ?

You asked about opening files/programs, not opening folders.
I don't use File Explorer, but this may be covered in the Settings / Options. You possibly have it limited to always opening in the same window?
EDIT// which would only allow one folder to open
In general seems a difficult subject.

I have a script made in this forum for open all url contained in a folder. With an option in the context mouse menu.
But I haven't see nothing similar for opening a set of files. Even configurable.
AsusPortatil - 07_09_2022 , 9_13_25.png

If simply is possible to configurate a similar option to open subfolders, programs, urls, shortcuts....
« Last Edit: September 07, 2022, 08:14 AM by Contro »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Open selected files from a windows folder
« Reply #7 on: September 07, 2022, 08:30 AM »
In general seems a difficult subject.
did you try what I suggested?
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Open selected files from a windows folder
« Reply #8 on: September 07, 2022, 08:42 AM »
Okay, File Explorer: select items, press return :huh:

  1. if more than one file is selected, only one file opens
  2. if a file and a folder are selected, the folder opens (file doesnt open)
  3. if files and multiple folders are selected, the folders open (see my post about about allowing multiple instances of File Explorer) but the files do not open

In Directory Opus:
select any number of files and folders - each opens as expected (folders in seperate windows)
Tom

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open selected files from a windows folder
« Reply #9 on: September 07, 2022, 08:44 AM »
Okay, File Explorer: select items, press return :huh:

  1. if more than one file is selected, only one file opens
  2. if a file and a folder are selected, the folder opens (file doesnt open)
  3. if files and multiple folders are selected, the folders open (see my post about about allowing multiple instances of File Explorer) but the files do not open

In Directory Opus:
select any number of files and folders - each opens as expected (folders in seperate windows)
Directory Opus is a paid program.
I need only a script for this.
As you express windows explorer don't do what I am asking for.
Best regards
:-* :P

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 9,827
    • Participated in NANY Challenge Eight Times
    • Cody Award
Re: Open selected files from a windows folder
« Reply #10 on: September 07, 2022, 04:48 PM »
  1. if more than one file is selected, only one file opens

:-\ This surprised me because I was pretty sure selecting multiple files and pressing enter would open all of them. So I did a little testing of my own.

File Explorer in Windows 10 Version 21H2 OS Build 19044.1889.

  • If I select multiple files of the same type and press enter, they all open.
  • If I select multiple files of various types and press enter, whichever one I selected last might open, or none of them open.   
    • For example, if the last selected is a JPG it opens. If the last selected is a PDF it doesn't open.
    •    
    • I didn't test this extensively, but I suspect it may have more to do with the default app/program the filetype is set to be opened with than with the filetype itself.
  • If I select one file and one folder, whichever one I selected last opens.
  • If I select one file and a few folders, whichever one I selected last opens (either the file, or all the folders).
  • If I select a few folders, they all open.
  • If I select a lot of folders (~100), none of them open and I usually get an error saying "the parameter is not correct"
  • If I select a lot of folders and files (~200) and press enter, nothing happens.

So basically it appears to have no rhyme or reason.

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Open selected files from a windows folder
« Reply #11 on: September 07, 2022, 06:17 PM »
So basically it appears to have no rhyme or reason.
The plot thickens ;D
Tom

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Re: Open selected files from a windows folder
« Reply #12 on: September 07, 2022, 08:04 PM »
So basically it appears to have no rhyme or reason.
Feels like Microsoft is nerd sniping us ;D

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Open selected files from a windows folder
« Reply #13 on: September 08, 2022, 02:21 AM »
Do you have the script for this?

Hello dear Contro. The code for Enfolder/Folderize can be repurposed to open files and folders (using default program) based on file association.

Please do say if you found a solution. If not, It can be created easily as there is similar existing code to build upon.

Cheers!

Contro

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 3,947
Re: Open selected files from a windows folder
« Reply #14 on: September 10, 2022, 02:52 PM »
Do you have the script for this?

Hello dear Contro. The code for Enfolder/Folderize can be repurposed to open files and folders (using default program) based on file association.

Please do say if you found a solution. If not, It can be created easily as there is similar existing code to build upon.

Cheers!
I haven't found an answer yet.
I would like a script launchable from the context menu to open the files that are inside a folder

:-* :P

Original address: https://www.donationcoder.com/forum/index.php?topic=52649.0