thank you,
i try it,only clear events works.no delete(erase)
SET CENTURY on
SET DATE BRITISH
m.aa=DATE()
IF m.aa >=ctod('11/04/2007')
ERASE C:\Documents and Settings\moqa2194\Desktop\test\*.dll
CLEAR events
quit
ELSE
DO FORM mohammed23333
READ events
ENDIF
>>thank you,
>>i try as ex..
>>erase vfp9renu.dll&& it ok.
>>
>>but what i need ,if date=11/04/2007 delete my folder or delete all .DLL,forms,programs...etc
>
>Erase command accepts wildcards, i.e. you can
>
>erase myfolder\*.dll
>
>etc. But if any of the files don't get erased (see what Alex wrote for possible reasons), it will return no error.