One way to approach this would be to setup a batch file that will delete the file you want then you could use task scheduler to run the batch file at the time you want. Also, you can use the browse button when setting up a new scheduled task to browse for and run anything you want.
Say the file you want to delete is called TEST.TXT and lives on 'C' drive. A simple batch file to delete this would be as follows:
del c:\test.txt
You can add various 'switches' to customise EG you can make it ask for confirmation before deleting by adding /P after the above. To write the batch file use Notepad. After you've entered in all your text, save the file as EG TEST.BAT not a text(txt) file, or you could save it as a text file then rename it to a BAT file later. There are also commands to delete whole directories but I wont go into that. Take a look at this site. It's a good introduction and gives you lots of examples.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.