Is it possible to open a folder, with QGIS' "run feature action", using Total Commander instead of explorer?

Something like:

explorer [%'C:\myfolder'%]

needs to be

C:\totalcmd\TOTALCMD.EXE [%'C:\myfolder'%]

  • Actually I need to open a folder witch contains some picture related to a point feature shape file, so with the info button I open the action menu to be redirected from Qgis to the exact folder and I can see what photos are related to the selected point. Furthermore the folder's path to be opened is stored as a point's attribute
    – Arthur
    Commented Oct 6, 2020 at 10:29
  • What is wrong now? I believe it is more a TotalCommander question (see this post for the required command line arguments)
    – JGH
    Commented Oct 6, 2020 at 12:16
  • Thanks for the hint, but I tried that code before posting my question and it didn't worked, it resulted in a message "unable to execute command", even replacing the directories.
    – Arthur
    Commented Oct 6, 2020 at 12:29
  • fyi on windows you have to start qgis.bat, not qgis.exe. The bat is in the \bin subdirectory. gis.stackexchange.com/questions/54778/…
    – Mapperz
    Commented Oct 6, 2020 at 13:37
  • qgis.bat opens the 3.14 version instead of the 3.10 long term release, but same message appears:unable to execute command @echo off SET totalc="C:\totalcmd\TOTALCMD64.EXE" set folder="C:\ " ECHO opening %folder% with %totalc% %totalc% %folder% ECHO opened
    – Arthur
    Commented Oct 6, 2020 at 14:16

1 Answer 1


Not exactly what I had in mind but it works. Save this batch file (similar to the one found in the link suggested above by JGH):

@echo off
    set "totalc=C:\totalcmd\TOTALCMD64.EXE"
    set "folder=%1"
    echo opening "%folder%" with "%totalc%"
    "%totalc%" /O /T /L="%folder%"
    echo opened

Call the batch file inside QGIS using this Windows action:


where [%PATH%] is the field that stores the folder to be opened.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.