folder delete batch file for every one hour.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simhadrisai
    New Member
    • May 2013
    • 3

    #1

    folder delete batch file for every one hour.

    Dear friends ,

    I have erp (client ) installed all the endusers system ,when they do search in any module screen we are get an error , for that we have 2 folders name structure and temp if we drop this error goes so every time we cannt delete manually so i need a batch file for droping this 2 folder for every 1 hr even user is using that erp or not ...
    os platform is windows 7 and xp ....so kindly help out in this issue ASAp... plz plz
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    I simhadrisai and welcome to bytes.com!

    So, just to make sure I understand you correctly: you want to create a task that will delete two folders (called structure and temp) once every hour regardless of whether the user is using erp or not. Correct?

    If I understood you correctly then what you will need is the following:
    • The command
      Code:
      DELTREE <directory>
      which will delete a directory with all of its contents
    • Task scheduling, which is explained here for Windows XP (and should be very similar under Windows 7).

    What you would do is create a batch script for deleting the directories and then create a task to run that batch script every hour.

    Comment

    Working...