<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/</id><updated>2020-02-28T04:45:36.634000Z</updated><subtitle>Recent posts to DIR (wie im Dos) oder LS (wie im Linux)</subtitle><entry><title>DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/?limit=25#5b83" rel="alternate"/><published>2020-02-28T04:45:36.634000Z</published><updated>2020-02-28T04:45:36.634000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.combd754b3607cf7f1d33d1cacb60f381309f7130c2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mg&lt;/p&gt;
&lt;p&gt;Danke ... probier ich aus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/?limit=25#733f" rel="alternate"/><published>2020-02-28T04:45:34.593000Z</published><updated>2020-02-28T04:45:34.593000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.com58db1f13f386dd9f4f0225e5e5118640369236cf</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo&lt;/p&gt;
&lt;p&gt;Das habe ich auch nicht behauptet...&lt;/p&gt;
&lt;p&gt;Aber mit SysDirRead können die Verzeichniseinträge eingelesen werden (siehe CoDeSys Hilfe).&lt;br/&gt;
Zu jedem Eintrag gibts einen POINTER TO DIRECTORY_INFO.&lt;br/&gt;
DIRECTORY_INFO wiederum ist eine Struktur mit folgendem Aufbau:&lt;/p&gt;
&lt;p&gt;TYPE DIRECTORY_INFO :&lt;br/&gt;
STRUCT&lt;br/&gt;
    ftTime : DIRFILETIME;&lt;br/&gt;
    dwSize : DWORD;&lt;br/&gt;
    bDirectory : BOOL;&lt;br/&gt;
END_STRUCT&lt;br/&gt;
END_TYPE&lt;/p&gt;
&lt;p&gt;Und jetzt kommts:&lt;br/&gt;
In der Struktur DIRFILETIME steht dann folgendes:&lt;/p&gt;
&lt;p&gt;Variable               Datentyp   Beschreibung&lt;br/&gt;
dtCreation            DT           Erstelldatum&lt;br/&gt;
dtLastAccess        DT           Datum des letzten Zugriffs&lt;br/&gt;
dtLastModification  DT           Datum der letzten Änderung&lt;/p&gt;
&lt;p&gt;Damit kannst du dir die entsprechenden Einträge (älter als xxx) aussuchen und löschen.&lt;/p&gt;
&lt;p&gt;Gruß Erik&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/?limit=25#37bd" rel="alternate"/><published>2020-02-28T04:45:28.808000Z</published><updated>2020-02-28T04:45:28.808000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com2dcf0294f42a7b87620dbdefc1b16cefbeae6235</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mg&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Erik Böhm hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Moin&lt;br/&gt;
Wenn die SysLibDir unterstützt wird, wäre dein Problem lösbar. &amp;lt;- Ja wird unterstützt&lt;br/&gt;
Gruß Erik&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Hallo Erik&lt;br/&gt;
Wie? da gibts aber keinen Befehl dafür&lt;br/&gt;
Mario&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/?limit=25#e9c7" rel="alternate"/><published>2020-02-28T04:45:26.760000Z</published><updated>2020-02-28T04:45:26.760000Z</updated><author><name>gravieren</name><uri>https://forge.codesys.com/u/gravieren/</uri></author><id>https://forge.codesys.com9b056cf605de990c4be26474b8c2fe6da0681fa8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Ja, die 750-881 unterstützt diese.&lt;/p&gt;
&lt;p&gt;Gruß Karl&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/?limit=25#8a89" rel="alternate"/><published>2020-02-28T04:45:21.013000Z</published><updated>2020-02-28T04:45:21.013000Z</updated><author><name>Erik Böhm</name><uri>https://forge.codesys.com/u/erik-boehm/</uri></author><id>https://forge.codesys.comf656670e93b91709a119e0cd6d855be951549899</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Moin&lt;br/&gt;
Wenn die SysLibDir unterstützt wird, wäre dein Problem lösbar.&lt;/p&gt;
&lt;p&gt;Gruß Erik&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DIR (wie im Dos) oder LS (wie im Linux)</title><link href="https://forge.codesys.com/forge/talk/Deutsch/thread/052c7b0b43/?limit=25#1a72" rel="alternate"/><published>2020-02-28T04:45:18.940000Z</published><updated>2020-02-28T04:45:18.940000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com170271073613be32e0356cc8678c8fa849266ac4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; mg&lt;/p&gt;
&lt;p&gt;Hallo Leute&lt;/p&gt;
&lt;p&gt;750-881&lt;/p&gt;
&lt;p&gt;gibts eigentlich einen Befehl um sein Directory zu durchsuchen.&lt;/p&gt;
&lt;p&gt;Ich möchte damit das Ganze gegen einen Speicher-Überlauf schützen (normalerweise sollten alle CSV-Files von einem Server ausgelesen werden) und evtl. die ältesten CSV-Dateien löschen.&lt;br/&gt;
Ich weiß ich kann mir natürlich alle geschreibenen Dateien merken. Aber wenn da mal was schiefgeht habe ich wieder so ne Karteileiche drinnen. Am besten wäre natürlich gleich ein datumsabhängiger DEL-Befehl aber das wird wohl zuviel verlangt sein.&lt;/p&gt;
&lt;p&gt;Danke für Eure Antwort.&lt;/p&gt;
&lt;p&gt;Mario&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>