By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,708 Members | 2,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,708 IT Pros & Developers. It's quick & easy.

folder delete batch file for every one hour.

P: 3
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
Jun 18 '13 #1
Share this Question
Share on Google+
1 Reply


Nepomuk
Expert 2.5K+
P: 3,112
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
    Expand|Select|Wrap|Line Numbers
    1. 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.
Jun 18 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.