tags:

views:

50

answers:

3

i wanna to create a cron job on windows that daily delete files from a specific folder.

how can i do this??

Thanks in advance

+3  A: 

You want Scheduled Tasks.

With Scheduled Tasks, you can schedule any script, program, or document to run at a time that is most convenient for you. Scheduled Tasks starts every time that you start Windows XP and runs in the background, and it starts each task that you schedule at the time that you specify when you create the task.

Edit your question if you specifically need help with the deleting files bit, but typing in help del at a command prompt should tell you everything you need to know.

Dominic Rodger
how to allow it to delete files daily.Thanks for your help
Neveen
Write a batch script that invokes `del` on the files you want to delete, and use Scheduled Tasks to set it to run daily.
Dominic Rodger
Thanks, it works.
Neveen
+4  A: 

Use Schedule tasks in windows. Check here. You can use del command to remove one or more files. Put it inside a batch script and schedule it as a task.

Aviator
A: 

I use Cron for Windows,
it's very easy to use if you are familiar with cron from *nix

Nifle