Hast ja recht
Welche Methoden zu Entpacken gibts denn noch, ich habe es jetzt so
angepasst, dass man direkt aus dem Archiv (also durch drücken von ENTER,
STRG+BILD AB oder Doppelklick mit der Maus) entpacken kann oder
wahlweise über ALT+F6 (Das kannte ich bis eben übrigens noch gar nicht
und war einer meiner größten Kritikpunkte an TC. Wieso steht das nicht in
der Hilfe?).
Ist zwar nicht so wichtig, aber das wurmt mich irgendwie
Hier das neue Script (ist nur schnell zusammengebastelt, mittlerweile ganz
schön unübersichtlich, ich weiß):
Code: Select all
#NoTrayIcon
$exe = "7zg.exe"
If @OSType = "WIN32_NT" then $exe = "7zgn.exe"
$ini = @ScriptDir & "\7ztc.ini"
$ini_available = FileExists($ini)
$exe_available = FileExists(IniRead($ini, "Config", "Path", 0))
If Not BitAnd($ini_available, $exe_available) then
$initdir = RegRead("HKLM\Software\7-Zip", "Path")
if @error = 1 then $initdir = @ProgramFilesDir
$path = FileOpenDialog("7-Zip", $initdir, "7-Zip-Executable (" & $exe & ")", 3, $exe)
$path = StringLeft($path, StringLen($path) - StringLen($exe))
$success = IniWrite($ini, "Config", "Path", $path)
If $success = 0 then Exit
EndIf
If $cmdline[0] < 4 then Exit
$path = IniRead($ini, "Config", "Path", -1)
If $path = -1 then Exit
$unzip = " " & $cmdline[1] & " "
$filter = "*.*"
$overwrite = ""
$pass=""
$n=2
If $cmdline[2] = "-c-" then
$archive = $cmdline[3]
$n=4
Else
$archive = $cmdline[2]
$n=3
EndIf
$destination = $cmdline[$n] & "\"
if StringLeft($cmdline[$n+1],1) <> "@" then $filter = $cmdline[$n+1]
If $cmdline[0] > 4 then
if StringLeft($cmdline[$n+2],2) = "-p" then $pass = $cmdline[$n+2]
EndIf
If $cmdline[0] > 5 then
if StringLeft($cmdline[$n+2],3) = "-o+" then $overwrite = "-aoa"
EndIF
$commandline = $path & $exe & $unzip & '"' & $archive & '" -o"' & $destination & '" -ir!' & $filter & " " & $pass
Run($commandline)
Wäre nett, wenn ihr das Mal testen könntet. Alle mir bekannten (und vor
allem relevanten) Prüfungen, verliefen nach kurzem Test positiv. Habe
aber sicher noch einiges übersehen...
Grüße,
Murphy