In a dataport, I want first to verify if there are files in a directory and after delete them.
REPERTOIRE.SETFILTER(REPERTOIRE.path,'\\Srvpv2\commun\6_SAM\Fichiers tests\2004_10_22\');
REPERTOIRE.SETFILTER(REPERTOIRE.name,'*.txt');
IF REPERTOIRE.FIND('-') THEN
REPEAT
erase(REPERTOIRE.path+REPERTOIRE.name);
UNTIL REPERTOIRE.NEXT=0;
Comments
Jan Hoek
Product Developer
Mprise Products B.V.