delete files

April 14, 2009 at 04:13:14
Specs: Windows 2003
I want to delete these files daily:
a)c:\program files\websphere\appserver\heapdump*.txt
b)c:\program files\websphere\appserver\javacore*.txt

How should I do it

See More: delete files

Report •

April 14, 2009 at 04:52:22
Create a BAT like this, call it dailydel.bat:

del "c:\program files\websphere\appserver\heapdump*.txt"
del "c:\program files\websphere\appserver\javacore*.txt"

Then schedule it with AT:

at 17:00 /every:m,t,w,th,f,s,su c:\mystuff\dailydel.bat

If at first you don't succeed, you're about average.


Report •

April 20, 2009 at 05:01:55
thanks Mechanix2Go, it worked.

imagine those files, each pair with the size of around 390MB, appear every 2 minutes. the server become hang. and our web based applications become inaccessible.

yours truly

Report •

April 20, 2009 at 05:04:45
by the way, i am using windows scheduled task. i can't imagine what "AT" is.

Report •

Related Solutions

Ask Question