473,327 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

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
Jun 18 '13 #1
1 2590
Nepomuk
3,112 Expert 2GB
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

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

Similar topics

14
by: Mark C. | last post by:
I'm trying to call a batch file that I've built using the FileSystemObject and CreateObject("Wscript.Shell"), oShell.Run... in an asp script. Naturally, I can get the script to work from a command...
26
by: mvdkwong | last post by:
What's the trick to running a batch file from VBA? I'm trying to call it using the Shell function but it's not working for me. If I double-click the batch file or run it from the command line it...
1
by: Tral | last post by:
Hi, I need some help I want to write every hour for 24 hours an integer to a file,the integer is given from the random, and after that i want to read from the file and find their sum divided by 24....
0
by: gabrielk43 | last post by:
Hi to all, I have made a web service which creates a batch file in a folder in web server and tries to execute it (in a Windows Server 2003 web server). So far I have managed to create the batch...
4
by: cryogeneric | last post by:
Hello everyone, :) I can't seem to get around some annoying permission issues when I attempt to run a quick test where I call a batch file from my ASP script. I'm running this on my XP Pro...
2
by: moorcroft | last post by:
I've never really written batch files before and don't know syntax etc so am looking some help. My folder structure is as follows: c:\applications\ contains a list of folders for example: ...
0
by: foltac | last post by:
We run a database replication process that ultimately puts a new copy of an Access DB in a new folder (on the server harddisk) every night. The folder is programmatically named and includes the...
0
by: Arulmanoj | last post by:
Hi, I don't know whether it is the right place to ask this question. But I am facing a problem. I need write a batch file which will delete files which are 5 days older from current system date in...
0
by: Arulmanoj | last post by:
Hi, I need a batch file to delete all PDF files in a folder and it's subfolders. I will be giving the folder path and number of old days to delete as static values.. Please it's very urgent. Also...
0
by: gayatri pande | last post by:
Hi Can any one suggest a SVN command which recognizes the newly added and modified files and copy them. Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.