|
|
| Next: Windows Explorer Uses All System Resources |
| Author |
Message |
Werebo

Joined: Aug 09, 2003 Posts: 4078
Location: SE London, UK...
|
Posted: Tue Jan 17, 2006 2:33 pm Post subject: |
|
|
Allo all  ,
A well 'andy tip I picked up many moons ago (early Win95 days)
Create a new folder c:\temp
If running WinXp (and possibly 2000, I'm not too familiar with using it...) - From system Properties, select 'Advanced' - 'Environment Variables - 'User Variables' - Set both temp AND Tmp to point to the new c:\temp folder
If running Win95, 98, ME and might be others, In the Autoexec.bat file, add these 2 lines somewhere
Set Temp=C:\temp
Set Tmp=C:\Temp
If possible, set your program's options to use the new folder for working in... (Netscape is VERY obliging for this  ...)
Reboot PC.....
At least 99% of ALL the temp files created will now be placed in the c:\temp folder. This makes it a lot easier to delete the junk as neccessary, rather than go hunting under buried folders....
If neccessary or if the ethics of 'Pure Laziness' demand it, a simple batch file can be made to empty the folder at startup.
|
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Thu Jan 19, 2006 9:05 am Post subject: |
|
|
| Quote: |
| If neccessary or if the ethics of 'Pure Laziness' demand it, a simple batch file can be made to empty the folder at startup. |
That did work very well for pre-XP OS's. I used that technique on every setup, back then. :harhar:
However, XP is a bird of a different feather. Or, horse of a different color. :harhar: :beatdeadhorse5:
XP doesn't use the Autoexec.bat file....it doesn't even use DOS.
So we have to use a slightly different tack when programming XP.
A little digging will ferrit out the folders where XP keeps its junk. (Well, maybe a lot of digging) :laugh:
Then incorporate those folders into a clenup.bat file that will empty them every time the batch file runs.
Put a shortcut to that batch file in the Startup folder under Program Files, and you have "daily maid service".
Your computer will be cleaned on every boot-up.
I use the old "Deltree.exe" program from '98 to facilitate the thorough deletion of everything from the selected folder, even sub folders. Put "Deltree.exe" in your 'C:\Windows\Syetem32' and it will run like any other DOS command. For those who don't have a 98 or ME system available where they can snag a copy of 'Deltree', it can be quickly downloaded Here.
You'll find the XPCleanup.bat file there as well and some other helps for XP.
I employ this technique for all my customers now. It just keeps their computers SO much cleaner.
A weekly "Disk Cleanup" and "Defrag" completes the weekly maintenance package.
Even the laziest user who just won't do any maintenance, will 'at least' stay junk free.
Just for grins....here's my own XPCleanup.bat file.
Feel free to copy and paste this text (between the lines of stars) into a Wordpad document and save it as your own "Cleanup.bat" program.
Where I have "Randy" as my personal folder (that's really NOT my name)...change it to whatever name you use for your own personal folder. Good Luck,
*******************************************************
Rem: The Deltree.exe command must be in your C:\windows\system32 before this program will run.
Rem: This command can be found in any system running Windows 98 or ME.
Rem: the /y after deltree tells deltree to execute the command without stopping to ask if it's OK.
Rem: The lines that do not adhear to the DOS 8+3 filename structure must be in quotes.
@Echo off
cls
deltree /y C:\temp\*.*
deltree /y "c:\%windir%\temp\*.*"
deltree /y "c:\%windir%\WUTemp\*.*"
deltree /y "c:\%windir%\system32\config\systemprofile\cookies\*.*"
deltree /y "C:\Documents and Settings\Default User\Local Settings\Temporary Internet Files\Content.IE5\*.*"
deltree /y "C:\Documents and Settings\Default User\Local Settings\History\History.IE5\*.*"
Rem: No need to duplicate the following section for each registered User
deltree /y "C:\Documents and Settings\Randy\Cookies\*.*"
deltree /y "C:\Documents and Settings\Randy\recent\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\cookies\*.*"
deltree /y "C:\Documents and Settings\Randy\userdata\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\History\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\History\Temporary Internet Files\Content.IE5\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\Temporary Internet Files\Content.IE5\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Cookies\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Local Settings\History\History.IE5\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\NetworkService\Local Settings\Temporary Internet Files\Content.IE5\*.*"
deltree /y "C:\Documents and Settings\LocalService\Local Settings\History\History.IE5\*.*"
deltree /y "C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5\*.*"
deltree /y "C:\Documents and Settings\LocalService\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\LocalService\Cookies\*.*"
deltree /y "C:\Documents and Settings\Administrator\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\*.*"
deltree /y "C:\Documents and Settings\Administrator\Local Settings\History\*.*"
deltree /y "C:\Documents and Settings\Administrator\Cookies\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\Temp\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\Temporary Internet Files\*.*"
deltree /y "C:\Documents and Settings\Randy\Local Settings\History\*.*"
deltree /y "C:\Documents and Settings\Randy\Cookies\*.*"
deltree /y "C:\Documents and Settings\Randy\temp\*.*"
Rem: the following line deletes the Virus Vault for AVG 7 anti-virus program.
deltree /y "C:\$VAULT$.AVG\*.*"
Rem: the following line deletes the Undo files from MS's RegClean.
deltree /y "C:\Regclean\*.reg"
Rem: the following line deletes the contents of the prefetch folder.
Rem: remove this line if you do NOT want your Prefetch folder cleaned out.
deltree /y "C:\windows\prefetch\*.*"
*************************************************
For those PC's that don't (shudder) get rebooted daily, put a shortcut to the batch file on the desktop where it can be run....whenever you like. Like, right before you run Disk Cleanup and Defrag as part of a weekly maintenance routine.
Keeping your computer clean and running at peak performance, "Ain't Rocket Science" nor is it difficult.
But, it does require a bit of dilligence on your own part.
Happy Computing,
:cheers:
Morbius
I just had to add this little,,,,whatever.
*****************************************
Why Computers Crash
_You gotta read this out_ _LOUD!!!!!_
Why Computers Sometimes Crash! by Dr. Seuss.
(Read this to yourself _aloud_ - it's great!)
If a packet hits a pocket on a socket on a port, and the bus is
interrupted at a very last resort, and the access of the memory
makes your floppy disk abort, then the socket packet pocket has
an error to report.
If your cursor finds a menu item followed by a dash, and the
double-clicking icon puts your window in the trash, and your data
is corrupted cause the index doesn't hash, then your situation's
hopeless and your system's gonna crash!
If the label on the cable on the table at your house, says the
network is connected to the button on your mouse, but your
packets want to tunnel to another protocol, that's repeatedly
rejected by the printer down the hall.
And your screen is all distorted by the side effects of gauss, so
your icons in the window are as wavy as a souse; then you may as
well reboot and go out with a bang, 'cuz sure as I'm a poet, the
sucker's gonna hang.
When the copy on your floppy's getting sloppy in the disk, and
the macro code instructions is causing unnecessary risk, then
you'll have to flash the memory and you'll want to RAM your ROM,
and then quickly turn off the computer and be sure to tell your Mom!
Well, that certainly clears things up for me.
Thank you, Bill Gates, for bringing all this into our lives. |
|
| Back to top |
|
 |
Werebo

Joined: Aug 09, 2003 Posts: 4078
Location: SE London, UK...
|
Posted: Thu Jan 19, 2006 9:11 am Post subject: |
|
|
Allo Morbius ,
It does work in XP ....
If running WinXp. From system Properties, select 'Advanced' - 'Environment Variables - 'User Variables' - Set both temp AND Tmp to point to the new c:\temp folder.
It doesn't actually empty the 'Temp' folder, it just puts all the temp files in that one, easy to find folder, so combined with your 'cleanup.bat' file (amended), they should both work well
I know it works cos I have my laptop set like it and all the XP machines I've worked on previously :thumbup: ...
There's gonna be some amazed/confused techies in years to come when they get in those PC's.... :laugh: ..
PS I like your new Avatar, Morbius , Is she the danger that 'Robbie Robot' was always warning Will Robinson about?? :whistling: :whistling: :w00t-x100: ....
PPS Yes, I know it was a different film/series (Lost in Space - Forbidden Planet) but the robot was the same ....
|
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Thu Jan 19, 2006 9:23 am Post subject: |
|
|
| Quote: |
| PPS Yes, I know it was a different film/series (Lost in Space - Forbidden Planet) but the robot was the same |
Actually, Robbie only showed up in One movie....The Forbidden Planet.
The girl, Altaira Morbius, was played by Anne Francis. Yes, that's her in the little pic.
Robbie actually walked....the robot in Lost In Space, was a totally different critter and was simply called "The Robot". I don't think he was ever named. And, he didn't walk,,,,but ran around on little treads. Remember?
Copies of Robie are for sale at several thousand $'s ea.
God, I'd love to have one.
Have a great day,
The Doctor (Dr. Morbius) |
|
| Back to top |
|
 |
Werebo

Joined: Aug 09, 2003 Posts: 4078
Location: SE London, UK...
|
Posted: Thu Jan 19, 2006 11:47 am Post subject: |
|
|
Aaahhhh.... ok ....
I loved the film 'Forbidden Planet' (and still do).... :laugh:
I never watched much of the old series, 'Lost in Space' cos that Doc Smith guy irritated me soooo much!!! I wanted to space him out the airlock :dry: .... All I can mainly remember about 'The Robot' was the little whirring gyros in his head!! :laugh:
|
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Fri Jan 20, 2006 9:43 am Post subject: |
|
|
Danger, Will Robinson!
Yeah, I hated that Dr. Smith so much I would have spaced him myself. When I saw him in other films I just got mad all over again.
WELL, I've never messed with the Environmental Variables in XP.
I just install my cleanup.bat file and let it do the work of ferriting out the junk and disposing of it.
I use a little Install.bat file to install it in the C:\ directory and then put a shortcut to it on the desktop.
It's a part of my weekly cleanup routine. Along with Disk Cleanup, RegClean and Defrag.
As I've said so many times and in so many threads, "Drive Maintenance Ain't Rocket Science. It just requires a little dilligence and a few minutes a week to accomplish".
:cheers:
The Doctor (Dr. Morbius) |
|
| Back to top |
|
 |
Webb

Joined: Feb 17, 2003 Posts: 4271
|
Posted: Fri Jan 20, 2006 9:57 am Post subject: |
|
|
XP does not read enviromental variables from autoexec.bat by default. This behavior can be changed with X-Setup or this registry modification.
XP does process autoexec.nt. Link. You could call your cleanup.bat file from autoexec.nt. |
|
| Back to top |
|
 |
Werebo

Joined: Aug 09, 2003 Posts: 4078
Location: SE London, UK...
|
Posted: Fri Jan 20, 2006 11:14 pm Post subject: |
|
|
In reply to Morbius' poem (Nice one ),
All I can say is:
I hate this machine, I wish I could sell it.
It won't do what I want it to, only what I tell it......
I'll see thee later folks :harhar:
|
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Mon Jan 23, 2006 7:20 pm Post subject: |
|
|
This thread has been read by many....
Has anyone even tried my Cleanup.bat file yet?
I'm just wondering, if I'm doing any good here or just spinning my wheels. If so, my time can be put to better use elsewhere.
:cheers: |
|
| Back to top |
|
 |
usasma

Joined: May 06, 2003 Posts: 5007
|
Posted: Tue Jan 24, 2006 9:33 am Post subject: |
|
|
Morbius - It works just fine, and I've referred several people to your site to get it also!
I don't use it on a regular basis because I don't reboot all that often - but it's probably the best "cleaner" that I've seen in a long time.
You're not spinning your wheels here. There isn't a whole bunch to say about it - it does the job that it's intended to do, and does it quite well! That's what happens to good stuff - it's taken for granted until it's no longer available - then everyone raises the roof about it! Look at BlackViper.com - there's much more mention of him on the web now that he's unavailable!
We do appreciate your contributions, and although we may not say it often enough - you are a very valuable and valued member of this community! |
|
| Back to top |
|
 |
Webb

Joined: Feb 17, 2003 Posts: 4271
|
Posted: Tue Jan 24, 2006 10:15 am Post subject: |
|
|
I had been doing something like this since my W98 days. When I found your original cleanup.bat I realized my version was leaving a lot of junk behind and I just added a lot of your code to mine. If you're ready for constructive criticism, though:
1. Your version requires the use of deltree. A lot of people won't use it if they have to add a program to their computers. I use either rmdir (to remove entire directories) or del *.* /q (to remove the contents of directories).
2. Your version deletes all IE cookies, good or bad, but doesn't touch Firefox cookies, good or bad. My version calls my third party cookie manager (Cookie Monster in silent mode) to delete only bad cookies. Cookie Monster manages both IE and Firebox cookies. If it's going to delete all cookies I think a warning would be appropriate.
3. Neither your version nor mine deletes enough junk from C:\WINDOWS\system32\config\systemprofile. There is usually a lot more junk in there that can be safely deleted but so far I've been too lazy to figure out what can be safely deleted and add it to my file.
4. I don't run mine at startup. I have a quicklaunch button for it because I like to use it several times a day to clean up the cookies. It takes about a quarter second.
5. I liked your original version, which used "%homepath%" instead of "C:\Documents and Settings\Randy" - no editing required. |
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Tue Jan 24, 2006 6:49 pm Post subject: |
|
|
I settled on Deltree.exe (a leftover from my old '98 days) because it lets me delete a certain type of file from a folder with out taking out the folder itself. For instance:
Deltree /y "C:\Regclean\*.reg" takes out all the undo files and leaves the program file itself intact.
It will also take out hidden and system files that the simple delete command won't touch.
It just works, so I keep it. Adding Deltree.exe to your "C:\windows\system32" folder really ain't no big deal.
I did the %Homepath% thingy, but on my own PC I just go ahead and use the Familiar version. It seems like I was haveing some kind of problem with the %Homepath% thingy....I just can't remember now what it was.
What I posted was my own cleanup file....not the one I install for all my customers.
I give them an Icon on their desktop and put it in the Startup folder as well.
MY Customers, DO NOT leave their computers on all the time, so they get a nice little cleanup on every boot up.
I do like cookies. Chocolate Chip are my fovorites. Oreo would be my next choice. But saving some piece of crap that some web site stuffed into my PC without my permission.....Forgetaboutit! They're Outahere!
To each his own.
John, thanks for your vote of confidence. I appreciate you, Dude.
:cheers:
|
|
| Back to top |
|
 |
Samwitty

Joined: Aug 12, 2005 Posts: 33
|
Posted: Wed Jan 25, 2006 9:56 am Post subject: |
|
|
[size=3]Morbius, You is the man. I use your cleaner also and your help is always the best. Hope you stay here forever. We do appreciate your contributions. You are the top banana with me bubby :w00t:
Ooooooooooo PS Whats a good, fast defagger? :hmm: takes forever. :thumbdown: I use xp or system mechanic. Again, takes forever. :thumbdown: Thanks |
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Thu Jan 26, 2006 6:19 am Post subject: |
|
|
Sam,
You just had to ask, didn't you? :laugh:
I've not done a real defrag in quite some time, since I found that by doing a Ghost backup followed immediately by a Ghost Restore, would re-write the intire C: drive, laying all the files down in perfect Order with NO spaces and of course, NO fragmentation. See a picture of the final result HERE.
I can do the whole job in less than fifteen minutes with my SATA drives.
Sixteen years ago when I was an Operator on a mainframe computer system I did the same kind of thing on the main system HD. I would copy all the files to a removable pack, reformat the main HD and then copy all the files back again. When I first got that job, that HD had never been cleaned or defragged in almost ten years. What a mess! It took me almost two weeks in my spare time to remove all the junk that had accumulated on that drive. Then just a few short hours to do the Defrag operation.
My biggest gripe with the Defrag in XP is that it doesn't compact the data like the old 98 or ME defrag did.
For anyone still using any version of 98, they should get a copy of the Defrag program from Windows ME.
It was slightly re-written, removing about fifty bytes, and runs about ten times faster than the old 98 defrag.
I wonder how many other programs could benefit from a 'RE-Write"?
I carry the ME defrag program with me on my Utilities CD and share it with all my '98 customers.
I've also eMailed it to friends all over the world.
Thanks again Sam for the kind words,
:cheers:
Morbius  |
|
| Back to top |
|
 |
FormalDaHyde

Joined: Jan 02, 2005 Posts: 1511
|
Posted: Tue Feb 07, 2006 1:44 pm Post subject: |
|
|
WinXP defrag is really like a 'DisKeeperLite'.
The normal DiskKeeper is a hog and a curious beast but it is very docile when "scheduled" properly!
Since it attempts to make itself transparent to the user {as it should really be}, you may find a few nits with it: Such as a 'dirty flag' causing it to never run ... but without a user warning!
If one late night, you start thinking about such things as defragmenting your HDDs (rather than falling a sleep), you may wish to reconsider who is truly in charge of defrag tasks and try an alternative to DK/Lite.
I have changed over to O&O Defrag utility and now I fall asleep much better! I must warn you that the price ($40USD) of this proggie may leave you with nightmares... I was fortunate enough to come across a bundled/rebated version last year. :harhar: |
|
| Back to top |
|
 |
Morbius

Joined: Sep 05, 2005 Posts: 1712
|
Posted: Mon Feb 13, 2006 6:12 am Post subject: |
|
|
I'm just curious.....
Why on earth, would anyone, anywhere, want to waste good money to buy a Defrag program when MS has already given you one for FREE?
Getting the most for the least cost is what being successful is all about.
:cheers:
Morbius
[edited] |
|
| Back to top |
|
 |
FormalDaHyde

Joined: Jan 02, 2005 Posts: 1511
|
Posted: Mon Feb 13, 2006 1:22 pm Post subject: |
|
|
| Quote: |
... I'm just curious.....
Why on earth, would anyone, anywhere, want to waste good money to buy a Defrag program when MS has already given you one for FREE? ... |
I know exactly what you are saying and I know this quote to be almost like a rhetorical question but I am gonna take the bait and do like a confessional so that I purge myself of frivilously sinning: I run a 6 SCSI HDD system running at 10k rpm and 160MB/s data thruput on two separate SCSI channels. I could also be accused of massively transporting data to-and-fro!
Would such petty 'excuses' be forgiven and be justification for wanting a $9 program? :redhorns:
|
|
| Back to top |
|
 |
tbernstein

Joined: May 16, 2003 Posts: 1576
Location: London
|
Posted: Tue Feb 14, 2006 5:41 pm Post subject: |
|
|
One of the UK computer mags is giving away O&O defrag. (Version 4) as bait to sell its latest version ( .
And it does work better, qucker, more thoroughly than the MS version.
For free it is well worth the cost...but would I buy it?
What do you think |
|
| Back to top |
|
 |
FormalDaHyde

Joined: Jan 02, 2005 Posts: 1511
|
Posted: Wed Feb 15, 2006 12:58 pm Post subject: |
|
|
Let us not be so myopic by misrepresenting what a defrag agent does.
For some it is not even in their realm and cannot even look up the word in a dictionary.
A defrag tool is like any other tool that a techie may have at his/her disposal.
But we must also remember that degfrag programs have matured over the years... in an effort to keep control of unruly and humungous HardDiskDrives of today.
We should also acknowledge that there are different:
* HDD FileSystems (FAT16/FAT32/NTFS/ext2/ext3/ReiserFS and a few new ones looming in the future),
* Operating System (Win98/WinME/Win2k/WinXP... and Linux variants)
* HDD Interfaces (IDE/ATA/SATA/SCSI/USB...)
If the task of defragging an HDD (select one of above from each 3 categories) was as simple as pressing a single button... then I would have to agree with you Dr. Morbius.
But if we are to look at the less-than-ideal world of an HDD:
| Quote: |
| Quote: |
| ...It's just so hard to improve on perfection! |
|
Then we can come to some conclusions:
There can't be a perfectly defragged HDD, as shown{as shown in the image you linked/referenced to}
... at least for any long duration, if such a perfect HDD data was ever manipulated {add/remove/delete/modify} in any way.
How exactly can you really keep all of the data-bits in files contigious while manipulating them?
If you have not analyzed and/or tested any of the newer breed of Defrag clients on the market, then you may just have to take my word that OandO Defrag is one of the most flexible defrag tools on the market.
You can order your HDD file system defrag as you wish: Order by File Extension, or File Size, or File Date, or ...
You can have OandO analyze a HDD and click on clusters that are fragmented and it will show you file information.
In this above picture, I intentionally deleted a 9GByte Acronis TrueImage file (*.tib) from a 34G SCSI drive, for your viewing pleasure.
Notice the green mouse icon over a cluster and the results of OandO "ClusterInspector".
I am not saying that it is dire that you keep your HDD(s) 100% defragged at all times.
Yet if the act of defragging is properly executed/scheduled AND performed based on the individual users PC usage profiles, this act of automation will keep the HDD running as smooth as possible w/o user interruption or waste of time.
But I wish you well if you look like the type that is totally happy with a FAT32 formatted HDD with 512kByte {should have read "512byte} clusters. "Chacun a son gout." aka
It's ALL good! :thumbup: |
|
| Back to top |
|
 |
FormalDaHyde

Joined: Jan 02, 2005 Posts: 1511
|
Posted: Sat Feb 18, 2006 12:46 pm Post subject: |
|
|
Sorry Morbius,
No where in my letter was there any name callings on my side >> let alone a direct flame at you as you have stated by the word "LIAR"!
Along the same lines, I won't come to my own defense for you calling me to be none "OPEN MINDED"!
No really, I don 't mind!
But in the future, don't expect me to EVER address you nor reply to anything you post.
Case closed and muted! |
|
| Back to top |
|
 |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|