Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,After months of satisfactory use of Delindex a problem appears to have arisen. I had thought that the TEMP folder was re-created by Windows - I have read here that is NOT the case. Without the TEMP folder and two days ago using ADOBE and SBLV Recording I found .tmp files on my desktop and in my Recordings folder. The only way I can prevent this is by creating a new TEMP folder in Windows. What has changed? This was never a problem before. Now without the TEMP folder when I run msconfig I see that enviromental variables are at loggerheads in Windows Registry and in autoexec.bat. But not before. Something has happened. Is it possible to run Delindex too frequently as I was doing for a two day period prior to thes changes? Help much appreciated. Ben.
Uses WinMe and Loves It!

I had a look into Delindex.bat dated 09/23/02 codes and as for as deleting windows\temp it does not do so only the contents.
"DELINDEX DELETES THESE FOLDER CONTENTS:
echo C:\Windows\Applog; C:\Windows\Temp & C:\Temp"
the command it uses is
deltree /y c:\windows\temp\
Do not know if Delindex.bat has a newer version that may delete the folder or not.

Am using latest version which is 5.1 and here is the line of interest....
deltree /y c:\windows\temp\
Not sure what the /y switch is.

::deltree /y c:\temp\
Hello, there is the line nullified with the ::
That surely does delete my TEMP folder. But in the Intro2 this :
DELINDEX DELETES THESE FOLDERS (* = recreated by Windows):
echo C:\Windows\Cookies*, History*, Recent*; C:\Windows\Update Setup Files;
echo C:\Windows\Temporary Internet Files* (& alt TIF: ...\Locals~1\Tempor~1*)No mention of TEMP. I am puzzled.
Thanks for responding. If I find out what my problem is I will surely post back.
Uses WinMe and Loves It!

Ben,
deltree /y c:\windows\temp
^^that would delete the temp folder and contentsdeltree /y c:\windows\temp\
^^that would delete the contents of the temp foldercould you give the contents, of your autoexec file, thanks. might, might be your problem of scattered files
richard,
the /y switch, is let it know, well do the things without asking if it should
so you wouldn't get asked for everything/action it took. like do you want to delete this, do you want to delete this, ect, ect. you turned off the prompting/questioning by already saying yes /y
[^^layman terms^^]

Richard, This is what I understand you to be saying.
The back slash following temp\ as in
deltree /y c:\windows\temp\ prevents the deletion of the folder itself but deletes all the files in that folder. Here are the contents of my autoexec.bat :SET BLASTER=A220 I7 D1 H5 P330 T6
SET CTSYN=C:\WINDOWS
C:\PROGRA~1\CREATIVE\SBLIVE\DOSDRV\SBEINIT.COM
SET windir=C:\WINDOWS
SET winbootdir=C:\WINDOWS
SET COMSPEC=C:\WINDOWS\COMMAND.COM
SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
SET PROMPT=$p$g
SET TEMP=C:\WINDOWS\TEMP
SET TMP=C:\WINDOWS\TEMPIs there a hidden index.dat file associated with the C:windows\temp folder? And would that command deltree /y c:\windows\temp\ get rid of it?
LoggedOutAgain,
That command (delC:windows\temp\*tmp you say will delete the files in the TEMP folder.
What would the command be to delete the index.dat file in the TEMP folder or isn't there one? One can't see it and I have assumed it was hidden.
Thank you both for responding. I will try both lines given in place of the
deltree /y c:\windows\temp and see what happens.
Ben.Uses WinMe and Loves It!

Hello,
The last line-but-one in that last post of mine is incorrect, it should have read
deltree /y c:\windows\temp\This is the the command which exists in the latest Delindex and which deletes my c:\window\temp folder.
There were no files in the temp folder so I made one.
I modified the delindex.bat thus:
::deltree /y c:\temp\
delC:windows\temp\*tmp and ran it.The file I made was deleted.
So, Richard it seems to me that your saying that deltree /y c:\windows\temp\ would only delete the contents of the TEMP folder doesn't apply on my setup, because if I remove the :: from
::deltree /y c:\windows\temp\ my TEMP folder is removed and is not re-created.Frankly I am puzzled. And is there a hidden index.dat associated with c;windows\TEMP?
Ben.
Uses WinMe and Loves It!

DELINDEX does NOT delete TEMP folders precisely because they are NOT recreated. Never Did.
The lines in Delindex 5.1 are
deltree /y c:\temp\
deltree /y c:\windows\temp\Previous posts are correct: /y means there is no prompt before deletion, and the \ after temp means that the folder is preserved but all contents are deleted.

If you think Delindex (or the command deltree /y c:\windows\temp\) deletes the folder, while you are in DOS, look for c:\windows\temp\.
If it's not there, it probably was deleted BEFORE you ran DELINDEX. Are you using some other "cleaner"?
If it's not there, create it while you are in DOS, and run the original DELINDEX 5.1 again, and then check again. Please post back.

Hello RM,
Correct this if wrong, ok ;-) If Ben is/has to make the temp folder. He would type this;
md c:\windows\temp
yes, thanks RM
S.T.A.R.

I used the DOS command. It was unable to create the temp folder.
A temp folder I create is deleted by a cleanme.bat command (deltree temp) which I have used for a long time.
It is also deleted by Delindex.
Something had changed in my system between one day and the next since I use Creative Recorder virtually daily.
This thread I began in another forum tells more of the story.
http://forums.techguy.org/t302126.html
Thanks for the responses.
Uses WinMe and Loves It!

As you posted at techguy:
In the last few days I have made extensive use of the Delindex freeware and accompanied this by the use of these MSDOS commands, applied manually:
C:
cd\windows
smartdrv
deltree tempor~1
deltree history
deltree temp
deltree cookies
deltree recent
scandiskAll these "manually applied" commamnds are unnecessary if you use DELINDEX.
Your "manually applied" commamnds WILL delete the TEMP folder, specifically,
deltree temp
As I suspected, YOU and not DELINDEX are deleting the TEMP folder.
In my system, TEMP folders are not recreated on reboot. Maybe, on some systems, they might be created as needed.

Hello,
I am pleased to say that Windows, on my system, has somehow recovered itself in the interval between this post and the previous one.
The TEMP folder I created is no longer deleted by Delindex or by this cleanme.bat command deltree temp
Amazing really but that is this computer, at least this one!
Thanks.
Ben.
Uses WinMe and Loves It!

Not being satisfied I looked further.
I am not in the habit of looking at my HD LED when I wait for bootup to complete, rather I await the disappearance of the hour glass by the arrow on my screen.
I have, however, detected a second or further activity of the hard-drive by noticing a flickering LED subsequent to the disappearance of the hour glass.
If I do not wait for this completion the temp folder will not be re-created by Windows after it has been deleted by the DOS command deltree temp in my cleanme.bat.
Clearly it was never deleted by Delindex but was always deleted by the cleanme.bat and on those occasions where the file did have the time to be re-created (in view of the above) I was left without a temp file.
I am pleased to have resolved this apparent mystery, and to share it with you.
Best wishes,
Ben.
Uses WinMe and Loves It!

I think this version an improvement:
Not being satisfied I looked further.
I am not in the habit of looking at my HD LED when I wait for bootup to complete, rather I await the disappearance of the hour glass by the arrow on my screen.
I have, however, detected a second or so further activity of the hard-drive by noticing a flickering LED subsequent to the disappearance of the hour glass.
If I do not wait for this completion, the temp folder will not be re-created by Windows (after it has been deleted by the DOS command in my cleanme.bat i.e. deltree temp).
Clearly it was never deleted by Delindex deltree y/ c:\temp\
but was always deleted by the cleanme.bat deltree temp
and, on those occasions where the file did not have the time to be re-created (in view of the above), I was left without a temp file.I am pleased to have resolved this apparent mystery, and to share it with you.
Best wishes,
Uses WinMe and Loves It!

Sounds like overuse of cleanup programs which led to lots of unecessary grief.
By the way, to see hidden files....
Control Panel, Folder options, View tab, under Files and Folders, select Show hidden files.

Hello,
I don't have much knowledge of MSDOS. But the experiences of, and responses in, this thread have given me some insights.
I believe that WinMe is too good an OS to be over-used. And mine has survived all the unknowing abuses of this novice.
RM you are (justifiably) proud of Delindex. What prompted me to use it and manual deltree commands in conjunction, was to explore the outcomes of using each - in terms of the job done. The efficacy of each. And this was prompted by another user of both cleaning methods and a fellow-user of WinMe whose results seemed to differ from my own.
The over use of cleaning methods was, then, deliberate on my part.
What follows are the MSDOS commands which have satisfactorily resolved, in my mind at least, this whole question:
A:\>C:\
C:\>cd\windows
C:\WINDOWS>smartdrv
C:\WINDOWS>deltree temp
chose y
C:\WINDOWS>dir c:\windows\temp
No (temp) file found.
C:\WINDOWS>cd\
C:\>DELINDEX RUN
C:\cd\windows This line added
C:\WINDOWS>dir c:\window\temp
Details of the temp folder appear here.
C\:WINDOWS
Remove EBD.
Ctrl |Alt | Delete > home.Those of you who can read DOS will see the validity of what I have come up with.
Thank you all for your input.
Ben.
Uses WinMe and Loves It!

Delindex uses smartdrv
Delindex deletes the contents of c:\temp
Delindex deletes the contents of c:\windows\temp=======================================
Since you delete the entire c:\windows\temp folder before Delindex runs, what can "dir c:\window\temp" do except return a file not found message? "Dir c:\windows\temp\" will return "Invalid directory". What's the point?
If only the contents c:\windows\temp are deleted, all "dir c:\windows\temp" will show are "0 files". What's the point?
How does c:\windows\temp get magically recreated in DOS after you delete it, if you claim "Details of the temp folder appear here"?>
Besides, you can issue the command "dir c:\windows\temp" from the root directory without having to switch directories. Or if you do switch directories you can simply use dir temp.
I don't see "the validity of what you have come up with". Even though you think you "can read DOS", you have a lot to learn. In the meantime, I think you are a danger to yourself, and if you give advice, to others.
Ock·ham’s razor n. : A rule in science and philosophy stating that entities should not be multiplied needlessly. This rule is interpreted to mean that the simplest of two or more competing theories is preferable and that an explanation for unknown phenomena should first be attempted in terms of what is already known. Also called law of parsimony. [After Ockham, William of.] (AHD4)

In Ben's last post he admits in the first line he doesn't have much knowledge of DOS. I think the point Ben wanted to make was, yes c:\windows>deltree temp will delete the entire c:\windows\temp folder and it will not be recreated by Windows on the next boot. Also by running Delindex, the c:\windows\temp folder will be recreated. But what has really puzzled Ben and myself is when I use the command of c:\windows>deltree temp, my c:\windows\temp folder is deleted and then is recreated by Windows on my next boot but I also use Windows ME. So why does Windows not recreat the c:\windows]temp folder in Ben's system but it will be recreated in my system.

Thanks for the follow-up, Joe. Your post explains, what I was doing and why, very well.
It does seem uncertain as to whether ME does always re-create that TEMP folder.
After a format and install I find it is still not re-recreated on my system. So my recourse is to use only Delindex for the clean-ups and not the "manually DOS written" commands (as posted by me above), which are, in any case, limited in what they do.
Thanks to all for the feedback.
Ben.
Uses WinMe and Loves It!

![]() |
kernel32.dll error
|
Operating system not foun...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |