TransWikia.com

Opening folder using QGIS action with Total Commander

Geographic Information Systems Asked on February 13, 2021

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:totalcmdTOTALCMD.EXE [%’C:myfolder’%]

One Answer

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
    setlocal
    set "totalc=C:totalcmdTOTALCMD64.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:

C:/Users/BATCHFILEPATH.bat [%PATH%]

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

Answered by Arthur on February 13, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP