Discussion Locked

creating cache clearing batch upon boot

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I'm trying to create a cache clearing bacth file to execute upon bootup. I have a 98 and 2000 clients in a customer service rep environment utilizing Oracle. I want to be able to dump the temp folder as well as the jcache in Oracle b/c of some of the cache issues when superusers are switching between the production instance and the test instances. Since I'm doing these two caches I thought I would add in cookies and temp internet files. any suggestions on those two also?

I've usedrobocopy before in a scheduled batch, that is all of my experience with creating batches, so yes, I'm fairly green when it comes to batches and scripts. Can anyone point my to a good source for information on batch file creation. or can anyone assist me with the fundamental setup of the batch of what I'm looking for? I don't want anyone to think I haven't tried messing around with some batches, I have, but I have also deleted my entire tree before I realized what was going on. not once, but twice. so... i'm moving forward a little slower this time.

IE: I know this is the path to my temp directory, C:\Documents and Settings\chrism\Local Settings\Temp
but is it the same in Win2K's DOS prompt, it doesn't see to be when I throw that del in. and is the del command valid in win2k, and how about answering the yes or no? is that just using a '/y' type switch?

also, how do i dump the folders beneath the temp folder?

thanks in advance
chris

3 replies

by raildude64

I won't be able to help you much on jcache but here is some help on the other questions you had:

Good source of information on creating Batch files:
I started out with a book by Paul Somerson, PC Magazine DOS Power Tools. Lots of inforation in the 1275 pages. It covered DOS versions 2.0 through 4.0. The command switches have changed over the years but it is still a valued resource in my collection.

To delete everything in a folder use the following

echo Y|del *.*

For removing afolder and everything beneath it including files ... Be careful.
Win98 has the Deltree command

W2K use RD /S

You can start a batch file when a user logs on to a computer by creating a shortcut to the batch file in their Startup group. If you want it to run when different users log in you have to include the %USERNAME% variable. If you want to write one batch file that will take in consideration for the operating system (i.e. W2K vs Win98) use the %OS% variable.

Have fun and Cheers,
B.L.

by z_mazurc

thanks a bunch, that switch really helped. i'll look into the reference you suggested, i bet it will come in handy.

This discussion is closed to new replies.