---
Hallo,
alte Threads berichten immer von den Problemen mit bspw. Systemsteuerung oder Netzwerkumgebung, wenn man den Total Commander als Standardanwendung statt des Explorers zum Öffnen von Ordnern in der Registry angibt.
Ich habe das Problem für mich so gelöst, dass ich in der Registry ein Python-Skript eingestellt habe, dass basierend auf dem Parameter, was zu öffnen ist, als Weiche fungiert und entweder den Total Commander oder den normalen Explorer öffnet.
Das funktioniert so weit prima, ich wollte nur fragen, ob es dafür inzwischen eine andere, ggf. eingebaute Lösung gibt.
Der letzte Thread zum Thema ruht seit 2010 (http://www.ghisler.ch/board/viewtopic.php?t=4861&highlight=standard+ordner&sid=e8a688699ade7c5cbfb9ac309ec62275).
Vielen Dank!
EDIT: Falls es jemand interessiert, die Weiche ist sehr einfach aufgebaut:
Code: Select all
import os, subprocess, sys
# This is the flag that needs to be set to have either TC oder Explorer launch as a detached process so that
# this script exits without waiting for the process to finish.
DETACHED_PROCESS = 0x00000008
# sys.argv[0] is the script's own name, sys.argv[1] should be the path (specified as "%1" in the registry's open
# command).
if len(sys.argv)>1:
# Simple check: If the provided path exists for Python, it is a path pointing to a real location on disk and
# thus should be opened by TC. Else launch explorer.
if os.path.exists(sys.argv[1]):
subprocess.Popen(['c:\\totalcmd\\TOTALCMD64.EXE', '/O',sys.argv[1]], creationflags=DETACHED_PROCESS)
else:
subprocess.Popen(['c:\\Windows\\explorer.exe', sys.argv[1]], creationflags=DETACHED_PROCESS)