Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Ordner mit Inhalt löschen

SPS-Prog
2017-07-04
2017-09-26
  • SPS-Prog - 2017-07-04

    Kann mir jemand eine funktionierende Liabary empfehlem, die aus dem FileSystem einen Ordner inclusive Inhalt löscht! SysDir und CAA File Libary brachten bis jetzt keinen Erfolg!

     
  • Thomas - 2017-09-26

    Moin,

    ich habe das sowohl mit SP9 und SP11 mit der "CAA File" und der Win V3 versucht.
    Funzt

    PROGRAM PLC_PRG

    VAR

                DirectoryRemove    : File.DirRemove;
    
                sDir                       : String := 'c:\Temp\txtFile';
    
                xDo                       : BOOL;
    

    END_VAR

    DirectoryRemove(xExecute := xDo, sDirName := 'c:\Temp\txtFile',xRecursive := TRUE);

    Es darf halt keine Datei im Ordner geöffnet sein.!

    Gruß ThK

     

Log in to post a comment.