A batch file should be created as per the example below.
A new task should be added using the Windows task scheduler that runs the above batch file every 10 minutes. In Windows XP the task scheduler can be accessed from Start | Programs | Accessories | System Tools and by clicking on the Scheduled Tasks menu item. A new task can be added by selecting New | Scheduled Task from the File menu. Once the task has been created, the batch file and actual schedule can be defined by right-clicking on the task and selecting Properties.