{"id":3443,"date":"2021-11-03T14:05:03","date_gmt":"2021-11-03T14:05:03","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=3443"},"modified":"2021-11-03T14:05:25","modified_gmt":"2021-11-03T14:05:25","slug":"forfiles-error","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/programming\/forfiles-error\/21788.html","title":{"rendered":"Forfiles Error"},"content":{"rendered":"<p>Hi All,<br \/>\nI have a script that deletes files in folder that are older than 1 year.<\/p>\n<p>FORFILES \/P D:Doc\\ \/M *.txt \/D -366 \/C &#8220;cmd \/c del @path&#8221;<\/p>\n<p>It works good, except when it does not find any files older than 1 year, it gives the following error:<\/p>\n<p>ERROR: No files found with the specified search criteria.<\/p>\n<p>is there any way i could ask to ignore this error<\/p>\n<p>Thanks.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":18},"question-category":[55],"question_tags":[],"class_list":["post-3443","question","type-question","status-publish","hentry","question-category-programming"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/3443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=3443"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=3443"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=3443"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=3443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}