Code:
$sToDelete= %userprofile% +"Application Data\Microsoft\Internet  Explorer\Quick Launch\test1"
$Folder= "c:\testtest\test\"

IF Exist($sToDelete)
   DEL $sToDelete
   IF @ERROR "Cannot delete '"+$sToDelete+"'"+@CRLF+"Reason: ["+@ERROR+"] "+@SERROR+@CRLF
   ENDIF
ENDIF
IF Exist ($Folder)
   RD $Folder
   IF @ERROR "Cannot delete '"+$Folder+"'"+@CRLF+"Reason: ["+@ERROR+"] "+@SERROR+@CRLF
   ENDIF
ENDIF


Edited by Solid (2009-03-20 11:07 AM)