PCBUILD Archives

Personal Computer Hardware discussion List

PCBUILD@LISTSERV.ICORS.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0
Sender:
PCBUILD - Personal Computer Hardware discussion List <[log in to unmask]>
Subject:
From:
Wayne Copeland <[log in to unmask]>
Date:
Mon, 13 Mar 2000 12:27:38 -0600
Content-Transfer-Encoding:
quoted-printable
Content-Type:
text/plain; charset=US-ASCII
Reply-To:
PCBUILD - Personal Computer Hardware discussion List <[log in to unmask]>
Parts/Attachments:
text/plain (57 lines)
I have the following 3 lines in every autoexec.bat in all the computers I set up:

set temp=c:\temp
set tmp=c:\temp
echo y | del c:\temp\.

The first two lines set the directory Windows & DOS will use for the temp files.  Make sure you create the ditectory.  The third line will delete all the files there without user intervention.  I tell all my users to NEVER save anything in the TEMP directory - or ANY directory with TMP or TEMP in it's name.


-------------------------------------------------------------------
Wayne Copeland         |  (651) 297-3391
State of Minnesota     |  (651) 296-5745 (fax)
390 North Robert St.   |  [log in to unmask]
Saint Paul, MN 55101   |  
          ------------------------------
Opinions expressed are mine and do not necessarily reflect those 
 of my employer!
-------------------------------------------------------------------


>>> At Neethling <[log in to unmask]> 3/13/00 2:00:55 AM >>>
Hi Allan

As far as I know, it is possible to do this, just add the following command
to the Autoexec.bat

.....
if not exist c:\windows\temp\*.* goto FinishDelete
del c:\windows\temp\*.*
:FinishDelete

The delete command will prompt you for a yes/no answer.  Just reply Y and
hit enter.

It is normally not a good idea to delete any sub-directories in the Temp
folder, as these may have been created by installation programs, which will
later be used to uninstall the program again.

At Neethling
Cape Town

>Date:    Sat, 11 Mar 2000 14:46:01 -0800
>From:    A&C Thompson <[log in to unmask]>
>Subject: Autoexec & temp folder
>
>Hello fellow listers,
>
>Does anyone know if I can add a line to my autoexec.bat which will
>auto-empty my windows temp folder on start-up, and is this advisable? I'm
>running windows 95b. Thanks in advance.
>
>Alan

         PCBUILD maintains hundreds of useful files for download
                     visit our download web page at:
                     http://nospin.com/pc/files.html

ATOM RSS1 RSS2