Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file in win 98

Status
Not open for further replies.

SRaji

IS-IT--Management
Jul 17, 2000
35
US
We are using windows 98 systems. We need to delete the files in Temp and Temporary Internet Files folder regularly. Is there anyway to do this without user intervention? i.e by just clicking on the batch file it should automatically delete all the files without asking Y/N.

Thanxs in advance
Rajalakshmi.
 
[tab]Creating a batch file is easy. You could even set it up to be run by the scheduler. The problem is that some files in both directories may be held open by the OS. In this case the batch file would fail because it "errored out" on a file that could not be deleted. You will have to take this into account.

 
One way that I've got around this was to put it into the Autoexec.bat file so that Windows isn't open at that time.
 
Ya,
Put it in the Autoexec.bat.


example:

===================================
del c:\temp\*.* /y
del c:\windows\temp\*.* /y


====================================


 
Hi,
Thanks everyone for the suggestions. I tried creating a batch file and it works fine.

Thanks

Rajalakshmi.
dassraji@hotmail.com
 
Suppose I had 100 win98 clients that I wanted to add this entry to all Autoexec.bat files. Would I create a batch file that copies this entry to the Autoexec.bat.

What would the batch file look like ?
 
Put it in a login script - it runs after autoexec but before apps open.

see my note today in the NT forum if you are unsure how to do this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top