Neu-Einlesen (Refresh) im Vordergrund funktioniert nur teilweise | Windows 10 Mai 2020 Update

German support forum

Moderators: white, Hacker, Stefan2

Post Reply
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Neu-Einlesen (Refresh) im Vordergrund funktioniert nur teilweise | Windows 10 Mai 2020 Update

Post by *tuska »

Bei mir gibt es seit dem Windows 10 Mai 2020 Update (durchgeführt am 10.6.2020) teilweise ein Refresh-Problem..

Ziel:
Nur im Ordner D:\Bilder\~Noch-zu-entwickeln\ soll automatisch angezeigt werden,
- wieviele Bilder sich in den angezeigten Ordnern befinden
- wieviele Unterverzeichnisse sich in den angezeigten Ordnern befinden

Testszenario:
- Ansichtsmodus "Dateianzahl_Unterverzeichnisse_Größen" mit integrierter benutzerdef. Spaltensicht
- Auto Modus wechseln: +: Muss übereinstimmen ... *\~Noch-zu-entwickeln\
- Ordner: D:\Bilder\~Noch-zu-entwickeln\Test\ ... neu angelegt!
  a) Inhalt: 2 JPG-Dateien ... neu angelegt!
  b) Inhalt: 1 Unterordner "Test1" (D:\Bilder\~Noch-zu-entwickeln\Test\Test1\) ... neu angelegt!

Code: Select all

Benutzerdef. Spaltensicht "5 DateianzUnterverzGrößeNO-h/s"
- Titel: Dateien
- Feld: [=winscriptsadv.FilesCount_NO_System_Hidden]  <-- Es betrifft nur dieses Feld!
Einstellungen: WinScript Advanced 1.7, TC 9.51_clean_x64.ini (incl. benutzerdef.Spaltensicht,Ansichtsmodus,Auto Modus wechseln)
WinScript Advanced 1.7
http://totalcmd.net/plugring/WinScriptAdv.html

%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\options.ini

Code: Select all

[Script] 
ActiveScripts=MinutesAgo|CheckEncoding|Signature|ExplorerKBRounding|FilesCount

; List of scripts that will work together, returning their info in columns in one panel. 
; Separated by "|" - script1|script2 etc. One script can have multiple columns and display info with other
; scripts that also can be with multiple columns, all in one group of columns.
; You can add all scripts to ActiveScripts - it does not affect the performance (but takes more memory to 
; load and save script code), cause script runs only if you have the corresponding visible column in TC.  

;ActiveScripts=ExplorerKBRounding
[ExplorerKBRounding]
; File Size with explorer rounding in kB

Script=ExplorerKBRounding.vbs
content=Size in KB
extensions=*
FoldersPaths=0

[ExeScriptParsers]
; This section is for script engines that do not support COM interface 
; or has problems with it (no x64, unstable, buggy, stopped supporting etc). 
; Name of the key is a file extension of a script, here ahk is for AutoHotKey (*.ahk) scripts.
; Key value is the path to an exe interpretetor (parser). 
; Plugin reads script results from the console StdOut. Set correct string in StdOutFormat param (examples below). 
; To add a custom parser, you need also specify correct VarFormat key. 

; You can use enviroment variables in a path.

ahk=%COMMANDER_PATH%\Tools\AutoHotkey\AutoHotkey.exe
ahkCmdArgs=
ahkVarFormat=filename=%s
ahkDoubleSlashPath=0 
ahkStdOutFormat=FileAppend, %%%s%% `n, *
; StdOutFormat - this string is a script command to write to the console StdOut. WinScriptAdv uses this command 
; to get results from a script. For ahk language "`n" means linebreak cause FileAppend in ahk do not add linebreak 
; (but most languages add linebreak while writing to console - so in such case do not add line break manually).
; Instead of %s WinscriptAdv inserts the name of result variables - content, content1 etc e.g.: "FileAppend, %content% `n, *" or 
; "echo $content;" or "ConsoleWrite ($content & @CRLF)". See examples below.
; To display the character % use the sequence %% e.g.: %%%s%% - means %content% or %content1% etc (%variable% - is ahk syntax)
; CmdArgs - parser will be launched with specified arguments. For example to start interpreter without logo or without tray icon.

php=c:\php\php.exe
phpCmdArgs=
phpVarFormat=$filename='%s';
phpDoubleSlashPath=0
phpStdOutFormat=echo $%s;

au3=c:\Program Files (x86)\AutoIt3\AutoIt3.exe
au3CmdArgs=
au3VarFormat=$filename="%s"
au3DoubleSlashPath=0
au3StdOutFormat=ConsoleWrite ($%s & @CRLF)

; This VBS interpreter is only for example, WinScriptadv uses vbs\js\python engines via COM that is much faster than this.
; You can use it in portable versions of Total commander or if WSH is broken in Windows. 
;vbs=%WINDIR%\system32\cscript.exe
;vbsCmdArgs=//nologo
;vbsVarFormat=filename="%s"
;vbsDoubleSlashPath=0
;vbsStdOutFormat=Wscript.echo %s

[CheckEncoding]
Script=CheckEncoding.vbs
; Returns Character Encoding and Line Endings for file. E.g:  ASCII - CRLF (Win)

; All scripts files must be placed in "Scripts" folder

content=Encoding\Line Endings
content1=Encoding
content2=Line Endings

; Except the name of a column, this also defines a number of columns for a current script.
; "content", "content1" etc are fixed names of result variables of the script. They will be returned 
; to the plugin, so do not change it. You can change title of each column 
; for example: "content=Column Title", "content1=New Title #2".
; "content" is the first variable name, "content1" is the second... "content20" is the last. 
; So totally there are 21 result variables\columns per script.

extensions=*

; A list of file formats (extensions) that script handles separated by "|". For optimization purpose. 
; e.g: extensions=wav|mp3|doc
; * means that plugin sends all filenames to script.

FoldersPaths=0
; 1 - plugin sends all paths of folders to a script, 0 - no folders, only files. default = 0

[Signature]
; This script returns the first 10 bytes in the file as text or hex-representation. 
; Could be usefull for example to search for files with a specified signatur 

Script=Signature.vbs
content=Signature
extensions=*
FoldersPaths=0

[DayOfWeek]
; showing day of week for the modified file date 

Script=DayOfWeek.vbs
content=Day of week
extensions=*
FoldersPaths=0

[Html_info]
; two columns retreiving html title and "saved from" info 

Script=Html_info.vbs
content=Html Title
content1=Html saved from
extensions=htm|html|shtml|xml
FoldersPaths=0

[SearchInFile]
; Searches inside of a file and looks for a value specified by regular expression 

Script=SearchInFile.vbs
content=Found Inside
extensions=*
FoldersPaths=0

[ReadFileLines]
; Get line content from current file, from pos1 till pos2 
; use this info with renaming tool or for user columns

Script=ReadFileLines.vbs
content=Line1
content1=Line2
content2=Line3
content3=Line4
extensions=*
FoldersPaths=0

[FileOwner]
; Returns the owner of a file \ folder

Script=FileOwner.vbs
content=Owner
extensions=*
FoldersPaths=1

[MinutesAgo]
; Columns Returns the difference in minutes between the current date and the date of folder\file: 

Script=MinutesAgo.vbs
content=Created
content1=Modified
content2=Accessed
extensions=*
FoldersPaths=0

[testPython]
Script=testPython.py
content=Python
extensions=*
FoldersPaths=0

[testAHK]
Script=testAHK.ahk
content=AHK Line1
content1=AHK Line2
extensions=*
FoldersPaths=0

[testPHP]
Script=testPHP.php
content=PHP Line1
content1=PHP Line2
extensions=*
FoldersPaths=0

[testAutoIt]
Script=testAutoIt.au3
content=AutoIt Line1
content1=AutoIt Line2
extensions=*
FoldersPaths=0

[testPowerShell]
Script=testPowerShell.ps1
content=PowerShell1
content1=PowerShell2
extensions=*
FoldersPaths=0

[FilesCount]
Script=FilesCount.ahk
content=FilesCount_NO_System_Hidden
content1=FilesCount_All
extensions=*
FoldersPaths=1
%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\Scripts\FilesCount.ahk

Code: Select all

#NoEnv
#NoTrayIcon
#SingleInstance, Force
Process, Priority, , A
SetBatchLines, -1

;filename =%1%

Content := Content1 := ""

If InStr(FileExist(filename),"D")
{
  Loop, Files, %filename%\*.*, F
  {
    Content1++
    if A_LoopFileAttrib not contains H,S
    {
      Content++
    }
  }
}
TC 9.51_clean_x64.ini

Code: Select all

[Configuration]
UseNewDefFont=1
SetEncoding=äö.do.not.remove
firstmnu=3066
FirstTimeIconLib=0
FirstTime=0
test=242
LanguageIni=WCMD_DEU.LNG
Mainmenu=WCMD_DEU.mnu
Aligned extension=1
SeparateTree=0
PanelsVertical=0
[ButtonbarCache]
IconDll_default.bar=
IconDll_vertical.bar=
[FileSystemPlugins64]
$checksum$=3014672
[CustomFields]
Widths1=170,17,29,24,47,61,22
Headers1=Dateien\nVerz.\nBytes\nLetzte Änderung\nAttr.
Contents1=[=winscriptsadv.FilesCount_NO_System_Hidden]\n[=dirsizecalc.Directory Count]\n[=dirsizecalc.Size.B]\n[=tc.writedate.D.M.Y h:m]\n[=tc.attributestr]
Options1=1563|1|120
AutoLoad=0
Titles=DateianzUnterverzGrößeNO-h/s
[1920x1200 (10x20)]
CustColumnX=549
CustColumnY=330
CustColumnDX=821
CustColumnDY=500
CustColumnMax=0
maximized=0
x=272
y=5
dx=1595
dy=1076
Divider=500
DividerQuickView=500
DividerComments=500
Tabstops=305,309,368,245,798,93
monitor(0,0,1920,1200;120)=272,5,1595,1076
PluginSelX=659
PluginSelY=280
PluginSelDX=600
PluginSelDY=600
PluginSelMax=0
[ViewModes]
0_name=<Voreinstellung>
0_icon=
0_options=1|0|0||-1|-1|-1|-1|-1
1_name=Dateianzahl_Unterverzeichnisse_Größen
1_icon=
1_commands=cm_RereadSource
1_options=6|-1|0||-1|-1|-1|-1|-1
[ViewModeSwitch]
Enabled=1
0_rules=+*\~Noch-zu-entwickeln\
0_mode=1
[Tabstops]
0=305
1=309
3=368
4=245
6=798
5=93
AdjustWidth=1
[left]
path=d:\Bilder\~Noch-zu-entwickeln\
ViewMode=-1
activepanelcolor=-1
activepanelcolor2=-1
activepanelcolordark=-1
activepanelcolordark2=-1
ShowAllDetails=1
SpecialView=3
show=1
customsortorder=0
negative Sortorder=0
[right]
path=d:\Bilder\~Noch-zu-entwickeln\Test\z\
ViewMode=-1
activepanelcolor=-1
activepanelcolor2=-1
activepanelcolordark=-1
activepanelcolordark2=-1
ShowAllDetails=1
SpecialView=0
show=1
sortorder=0
negative Sortorder=0
[ContentPlugins]
0=%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\WinScriptsAdv.wdx
1=%COMMANDER_PATH%\Plugins\wdx\DirSizeCalc\dirsizecalc.wdx
0_detect=
1_detect=
0_date=1222351228
0_flags=0
1_date=1223868073
1_flags=14
[ContentPlugins64]
$checksum$=3874445963
0=1
1=1
[RightHistory]
0=d:\Bilder\~Noch-zu-entwickeln\Test\z\
1=d:\Bilder\~Noch-zu-entwickeln\Test\	#1,z
2=c:\
[LeftHistory]
0=d:\Bilder\~Noch-zu-entwickeln\
1=d:\Bilder\	#01,~Noch-zu-entwickeln
2=d:\Bilder\~Noch-zu-entwickeln\	#011,Test
3=d:\Bilder\~Noch-zu-entwickeln\Test\	#6,640x480_100pct.jpg
4=d:\Bilder\~Noch-zu-entwickeln\	#11,Test
5=d:\Bilder\~Noch-zu-entwickeln\Test\	#0
6=d:\Bilder\~Noch-zu-entwickeln\Test\
7=d:\	#01,Bilder
8=c:\
EDIT - Einstellungen:
%COMMANDER_PATH%\Plugins\wdx\WinScriptsAdv_wdx\options.ini
--> Kompletten Inhalt eingespielt, da Autor Problem nicht nachvollziehen konnte. <--

Ergebnis:
1. Der Inhalt von Feld "Dateien" wird NICHT aktualisiert*, d.h. die Dateianzahl, in diesem Fall 2 bleibt LEER(!)
    Es findet keine Aktualisierung der Ansicht im Ordner D:\Bilder\~Noch-zu-entwickeln\ statt, sofern
    im Ordner D:\Bilder\~Noch-zu-entwickeln\Test\ folgende Dateiaktionen durchgeführt werden: Kopieren, verschieben oder löschen.
2. Der Inhalt von Feld "Verzeichnisanzahl" wird aber gegebenenfalls jedesmal aktualisiert - in diesem Fall 1 (OK)
    (Benutzerdef. Spaltensicht - Feld: [=dirsizecalc.Unterverzeichnisanzahl] bzw. [=dirsizecalc.Directory Count] in TC_clean_x64.ini)

*Aktualisierungsversuche ohne Erfolg
- Ansicht - Quelle neu einlesen Strg+R - cm_RereadSource --> am Bildschirm ist das auch ersichtlich(!)
  HISTORY.TXT  (Diese 3 Kommandos einzeln getestet: cm_RereadSource 1, cm_RereadSource 2, cm_RereadSource 3)
  08.12.19 Added: cm_rereadsource: Parameter 1 forces refresh even if nothing has changed in that directory,
                            e.g. to re-load icons and overlays (32/64)
  13.12.19 Added: cm_rereadsource 2 re-applies automatic view mode change to current directory
                            (cm_rereadsource 3 also forces a refresh if nothing has changed) (32/64)
- mehrmalige Wechsel in das Verzeichnis D:\Bilder\~Noch-zu-entwickeln\Test\ und zurück
- Wechsel in das Unterverzeichnis und zurück
- Wechsel von D:\Bilder\ in das Verzeichnis D:\Bilder\~Noch-zu-entwickeln\ um den Auto Modus wechseln "anzustoßen"
- Verschiebung der Auto Modus wechseln - Regel ganz nach oben (1. Stelle); [diese war zuvor über Jahre weiter unten positioniert]
- diverse Tab-Wechsel
- JPG-Dateien im Ordner "Test" ergänzen/löschen

*Aktualisierungsversuch mit Erfolg
1. Die Ansicht von Ansichtsmodus/benutzerdef.Spaltensicht mit Auto Modus wechseln
    mit diesem Kommando löschen: cm_SrcViewMode0,em_Filter-alle-löschen,cm_50Percent,cm_RereadSource
2. Benutzerdefinierte Spaltensicht "5 DateianzUnterverzGrößeNO-h/s" manuell anwenden
3. In das Verzeichnis D:\Bilder\~Noch-zu-entwickeln\Test\ wechseln
4. In das Verzeichnis D:\Bilder\~Noch-zu-entwickeln\ zurückwechseln
5. Jetzt wurde auch die Spalte "Dateien" = Dateianzahl für den Ordner "Test" aktualisiert

Eine Aktualisierung wird in so einem Fall somit am einfachsten nur mehr nach Neustart von TC automatisch durchgeführt.
Dieses Verhalten wird besonders bei neu angelegten Ordnern und danach eingespielten Bilddateien sichtbar.
Bei allen zuvor angelegten Ordnern wird die Anzahl der Bilddateien noch angezeigt, wenn jedoch Bilddateien
hinzugefügt, gelöscht oder verschoben werden, dann erfolgt keine Aktualisierung mehr (außer bei TC-Neustart).

Interessant ist noch folgendes:
Sofern die Auto Modus wechseln - Regel wie folgt geändert wird: *\~Noch-zu-entwickeln\* (incl. Unterverzeichnisse!)
funktioniert auch die sofortige Aktualisierung von Feld "Dateien" = Dateianzahl im Ordner D:\Bilder\~Noch-zu-entwickeln\ !


Windows 10 Pro (x64) Version 2004 (OS build 19041.329)
TC 9.51 x64/x86 | Is there a way to display files count as column?
AutoHotkey 64-bit v1.1.32.00 | WinScript Advanced 1.7
Last edited by tuska on 2020-06-12, 20:08 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Neu-Einlesen (Refresh) im Vordergrund funktioniert nur teilweise | Windows 10 Mai 2020 Update

Post by *ghisler(Author) »

Möglicherweise ist das ein Bug von Windows 10 Version 2004.

Hier hat ein User auch Probleme mit einer automatischen Refresh-Funktion:
https://www.ghisler.ch/board/viewtopic.php?f=2&t=72052

Leider konnte ich das Problem bisher nicht reproduzieren.
Author of Total Commander
https://www.ghisler.com
User avatar
tuska
Power Member
Power Member
Posts: 3740
Joined: 2007-05-21, 12:17 UTC

Re: Neu-Einlesen (Refresh) im Vordergrund funktioniert nur teilweise | Windows 10 Mai 2020 Update

Post by *tuska »

2ghisler(Author)

Danke für Ihre prompte Auskunft.

Um dieses für mich neue Verhalten seit Windows 10 Mai 2020 Update
nochmals darzustellen, habe ich ein Testvideo (ca. 3 Min., 14 MB) erstellt.

Noch eine Ergänzung bezüglich der Einstellungen:
Konfigurieren -> Einstellungen... -> Neu-Einlesen (Refresh)

"Automatisches Neu-Einlesen wenn sich das Dateisystem ändert"
☑ Refresh beim Erzeugen, Löschen und Umbenennen von Dateien
☑ Auch bei Änderungen der Größe, des Datums und der Attribute
☐ Neue Dateien am ENDE der Dateiliste einfügen (Vorgabe: Einsortieren)
☐ Im Hintergrund nicht auf Änderungen reagieren
☑ Fußzeile anpassen (totale Anzahl Dateien)
☑ Kopfzeile anpassen (freier Speicherplatz)
Die restlichen drei Felder auf dieser Einstellungsseite sind leer.
Post Reply