How to make Midnight Commander open file with default application in Windows

1k Views Asked by At

I recently started using Midnight Commander on my Windows 10 system, but I can't seem to get it to handle images or pdf files properly. When I select the file and press Enter, nothing happens. I've tried altering the extension file to the following.

default/*
    Open=(%f)

After making that change, I get this error.

C:/Users/MyUser/AppData/Local/Temp/mc-MyUser/mcext2509Z1: line 13: C:/Test.txt: Permission denied

I am using the Powershell v7.3.2 in Windows Terminal v1.15.3465.0 on Windows 10 v.19044.2486

1

There are 1 best solutions below

4
phd On

Try

default/*
    Open=start %f

Try start C:\Test.txt from the cmd command line to test.

See https://superuser.com/q/550138. Try

start "" %f

For Powershell try

Start-Process %f