Hi,
How can I check if file exists before deleting it?
If I issue:
/file remove [/file find name=conf_ok_if_alias.rsc]
and the file doesnt exist, I got an error which exits my script.
Thank you.
Hi,
How can I check if file exists before deleting it?
If I issue:
/file remove [/file find name=conf_ok_if_alias.rsc]
and the file doesnt exist, I got an error which exits my script.
Thank you.
:local check [/file find name=conf_ok_if_alias.rsc]
:if ( $check != "" ) do= {
/file remove $check;
}