1.

Solve : Batch File to delete content within a folder?

Answer» <html><body><p>The <a href="https://interviewquestions.tuteehub.com/tag/folder-246959" style="font-weight:bold;" target="_blank" title="Click to know more about FOLDER">FOLDER</a> will be name "Scans" but I need the <a href="https://interviewquestions.tuteehub.com/tag/content-25493" style="font-weight:bold;" target="_blank" title="Click to know more about CONTENT">CONTENT</a> to be deleted within the folder and <a href="https://interviewquestions.tuteehub.com/tag/also-373387" style="font-weight:bold;" target="_blank" title="Click to know more about ALSO">ALSO</a> I need it to run when the computer starts up. How do I write a batch file for this, some examples? Thanks.Easy<br/><br/><br/>make a batch file open notepad enter the codes save it as del.bat and copy it to <a href="https://interviewquestions.tuteehub.com/tag/startup-1224826" style="font-weight:bold;" target="_blank" title="Click to know more about STARTUP">STARTUP</a> folder.<br/><br/><br/> Code: <a>[Select]</a>echo off<br/>Del "drive:\path\scans\*.*"<br/>echo   *** *** *** &amp;&amp;&amp;&amp; ||  ||  <br/>echo *** *** *** &amp;&amp;_ ||__||<br/>echo   ***  *** ***   &amp;&amp; ||  ||<br/>echo    ***** *** &amp;&amp;&amp;&amp; ||  ||<br/>echo ________________________________________<br/>echo<br/>echo Files are being deleteing will take very short time.<br/><br/><br/>ping -n 1 -<a href="https://interviewquestions.tuteehub.com/tag/w-236579" style="font-weight:bold;" target="_blank" title="Click to know more about W">W</a> 5000 1.1.1.1 &gt;nul <br/><br/><br/>please let me know the path or destination folder address. Change it by your self.<br/><br/>All set.<br/><br/>Thanks and regards<br/>vishuThanks I will try.vish do you now that will <br/><br/> Code: <a>[Select]</a>echo   *** *** *** &amp;&amp;&amp;&amp; ||  ||  <br/>echo *** *** *** &amp;&amp;_ ||__||<br/>echo   ***  *** ***   &amp;&amp; ||  ||<br/>echo    ***** *** &amp;&amp;&amp;&amp; ||  ||<br/>echo ________________________________________<br/>will contain plenty of syntax errors</p></body></html>


Discussion

No Comment Found