How can I open a file with its default application from the MinGW Bash prompt?

2

In the default windows command prompt you can open a file from the command prompt by entering the name. See Open file with default application from command line.

Is there an equivalent in the MinGW Bash prompt?

carl verbiest

Posted 2017-12-28T08:22:03.300

Reputation: 125

See this link for first time usage.

– Biswapriyo – 2017-12-28T08:37:26.437

I don't understand.. Using the method from the link you provided, start works exactly the same for me using the MinGW bash prompt. "start ." opens the windows explorer in the current directory. "start ./file.7z" fires up 7zip with the file.. – Señor CMasMas – 2020-01-16T22:19:42.930

Answers

1

Not sure if this counts, but i noticed on windows 10 that, if you list the files in the MinGW terminal and double click to highlight the file of interest, you can then right-click and the 1st option is to open it (with the default application)...

It's not exactly typing it and hitting enter to open, but you do NOT need a windows-explorer open in that folder either (this seems very close to what is asked).

vuvu

Posted 2017-12-28T08:22:03.300

Reputation: 11