Please visit the LangaList Home Page

Please note: Older issues may contain information that is now out of date.


How To Subscribe and Unsubscribe is at the end of this note. Mailing List Trouble? See http://www.langa.com/help.txt
Questions about the advertisers? See the end of this note. Please also see legal notices at the end of this note.

Please recommend the LangaList to a friend! (And maybe win $10,000 !)

An easier-to read formatted HTML version of this newsletter is available on line at
http://www.langa.com/newsletters/2000/2000-08-17.htm

The LangaList

2000-08-17
2000-Aug-17

A Free Email Newsletter from Fred Langa
That Helps You Get More From Your Hardware, 
Software, and Time Online

1) Reader DOS Suggestions
2)
Got Batch?
3)
Free Up Hundreds Of Megs Of Disk Space!
4)
But How Do You Know What's Safe To Delete?
5)
Win $10,000! (Really!)
6)
Resource Happiness
7)
They Loaded The Code
8)
International Readers
9)
Just For Grins

More!

 

1) Reader DOS Suggestions

"Save Your Butt With Dos, Part 3" (at http://content.techweb.com/winmag//columns/explorer/2000/17.htm ) is getting some good posts and email. For example:

Hi Fred

My favourite DOS utility is still JP Software's 4DOS. There's an NT version too:
http://jpsoft.com/

---Jonathan Philip Sturm   (PS I like the company's intitials -) )

Thanks; Jonathan. Initials or no, JP Software does offer quite a range of command-line (eg DOS) tools; and their main product is trialware, so you can give it a test drive for free.

Check out the other reader comments--- and the huge list of DOS tools--- at http://content.techweb.com/winmag//columns/explorer/2000/17.htm !

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

--- ( Your Clicks On Ad Links Help Keep The LangaList Free! ) ---

--------------( the above is an advertisement )--------------

2) Got Batch?

As part of our ongoing "farewell to DOS" coverage, I hope to collect and present a bunch of outstanding and useful "batch files"--- DOS-level command scripts that can automate many functions, tasks and processes.

If you have a batch file you're especially proud of and would like to share, please send me complete, annotated copy of the file (please use plenty of REM statements!) at batch@langa.com. (See the next item for an example of an annotated batch.) I'll include the best of the batch in a future article, and will give full credit to the author of each batch file I include.

If you send a file, please also include a text description of what the batch file does and any caveats (eg does it need to reside in a particular location, or require unusual external files?). Please also tell me if you want me to include your email address or home page address along with your batch file, if it's selected.

Again, see the next item for an example of an annotated batch.

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

3) Free Up Hundreds Of Megs Of Disk Space!

Here's an example of a very simple annotated batch file: This particular file can free up literally *hundreds of megabytes* of extra space on your hard drive by scrubbing away junk and unwanted files that Windows leaves behind (even if you use Windows' "Disk Cleanup Wizard"). I run a file like this every night.

There are two ways to get the file on your machine. I'll tell you how you can download it, for free, in a moment, but please read through the following text so you'll be sure you understand what the file does.

Better still, manually copy the file, because then you'll have 100%, total control over everything the file does. It's easy! Here's how:

Copy and paste the following lines into Notepad, and then save the file; name it something like "CLEANUP.BAT." (Make sure you're naming it ".bat" and not ".txt"). It can reside anywhere, and uses only files and commands that are normally part of a standard Windows installation.

@rem The first group of lines clears the screen and displays program information
@cls
@echo Fred Langa's Cleanup.Bat, a Win9x hard-disk cleanup tool.
@echo            ---------------------------------------------------------
@echo              Copyright (c) 2000 Langa Consulting LLC
@echo                      http://www.langa.com
@echo            ---------------------------------------------------------
@echo      Use Notepad to view file contents before running!
@echo Please also see http://www.langa.com/cleanup_bat.htm
@echo      for precaution/usage info and for newer versions.
@echo                                    -----------
@rem This file is offered as-is and without warranty of any kind.
@rem This file may be redistributed as long as this header
@rem information is retained in the final file.
@rem
@echo This batch file aggressively cleans up temp files in windows.
@echo   Note: all other apps should be closed before running this.
@echo ---------------------------------------------------------
@echo If you haven't followed the instructions above, hit ctrl-c to abort; otherwise
@pause
rem The next line wipes out the entire temp directory(ies), if it(they) exists
deltree /y c:\windows\temp\
deltree /y c:\temp\
deltree /y c:\windows\tmp\
deltree /y c:\tmp\
rem Next set of "del" lines deletes possibly-large "orphan" files that sometimes
rem get placed inappropriately in the "temporary internet files" (TIF) directory.
rem Note: it does NOT clean out files that actually belong in the TIF.
del c:\windows\tempor~1\*.zip
del c:\windows\tempor~1\*.exe
del c:\windows\tempor~1\*.gif
del c:\windows\tempor~1\*.jpg
del c:\windows\tempor~1\*.mov
del c:\windows\tempor~1\*.qt
del c:\windows\tempor~1\*.png
del c:\windows\tempor~1\*.bmp
del c:\windows\tempor~1\*.avi
del c:\windows\tempor~1\*.mpg
del c:\windows\tempor~1\*.mpeg
del c:\windows\tempor~1\*.ra
del c:\windows\tempor~1\*.ram
del c:\windows\tempor~1\*.mp3
del c:\windows\tempor~1\*.asf
rem Next line kills garbage files that Office leaves behind in c:\windows
del c:\windows\ff*.tmp
rem next line erases the icon cache, saving some resources on restart
deltree /y c:\windows\ShellIconCache
cls
exit
rem For best results, reboot after running this file.

Of course, you can (and should) edit and modify this batch script to preserve any files you *don't* want it to delete, or to delete other junk files that may accumulate in other places on your system. In any case, read through the script and make sure it's going to do what (and only what) you want before you run it. Because this script operates from DOS, the files it deletes will NOT be placed in the Recycle Bin: They will, in fact, be deleted immediately and may be difficult or impossible to recover. It's up to you to make sure that the batch file works only on files that are safe to delete! (If you're not sure what's safe, see the next item in this newsletter.)

Before you use this file, close all other running apps--- that's important because running apps use the Temp directory (that's what it's there for) and it's not a good idea to delete the Temp area while it's in use. When you close all other apps, the Temp file area should contain only junk that's safe to delete. (You can verify this by using Windows Explorer to view the contents of your Temp directories to ensure that nothing important has been placed there in error.)

When you click on CLEANUP.BAT to run it, it will identify itself, tell you what it's going to do, remind you to close all other apps, and give you a prompt telling you that you can abort the batch operation (by hitting the Ctrl and the letter C key at the same time) or go on (by hitting any other key).

If you abort, the batch file ends without doing anything at all; it makes absolutely no changes to your system. But when you let the batch script run, it will delete many temp files, and chances are good that it will free up *a ton* of space: On one cluttered system here, for example, it freed up over 700 MB! Of course, subsequent runs will delete far fewer files, especially if you run this file regularly.

If you have trouble getting the file to run, and if you copied the lines from the email version of this newsletter, it's possible that some lines got word-wrapped in your email. The web version of this newsletter, at http://www.langa.com/newsletters/2000/2000-08-17.htm , has a correctly-formatted version you can copy more reliably.

Or, if the above batch script is OK to run as-is on your system, you can download a copy for free (saving you the hassle of cutting-and-pasting or editing) by clicking here: http://www.langa.com/cleanup_bat.htm

All the above shows both the power of DOS (freeing up potentially hundreds and hundreds of megabytes of junk files that Windows misses) and the hassle of DOS (you operate without Windows' safety nets).

You may decide it's not worth the hassle, but I feel otherwise--- especially when I can run a little file like this and regain 700 MB of space!

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

4) But How Do You Know What's Safe To Delete?

Logically, all files in any "temporary" directory, or any file labeled "*.tmp" should be safe to delete. Temp files are are just that--- impermanent--- and no program should place any file you really need in a Temp directory; nor create any essential file with the "tmp" extension.

But not all temporary files get placed where you expect: Indeed, sometimes unneeded files are placed outside the Temp directories, and use other file extensions. If you know what and where those junk files are, you can whack them, too, as we discussed many months ago in http://www.langa.com/newsletters/1999/oct-7-99.htm#more .

But how can you be absolutely sure a file is OK to delete? For example, after reading the back issue mentioned above, a reader asked:

Hi Fred,

I look forward to your column - I've learned so much over the last year, just reading!! However, the above... column has me "confused"!!

Using his samples _*.* , ~*.* , *.??_ , and *.??~ . of files to delete, "safely", I presume?? I'm very dubious to delete things I don't understand what they are used for? Even if you right click on any given file, go to properties, they give "minimal" info. anyway! How can you determine IF it's safe to delete? Is this just a blanket OK? All files found are OK to delete? I have trouble believing that!!! I know you've said many times -- be careful in deleting temp. files - OK. How do you determine which temp. files are deleteable? See the dilemma I'm in?? Which way to turn, safely? I've gotten into terrible trouble using CleanSweep doing this and corrupted my system completely.

Look forward to your column advice. Cordially, John Stiers in Dallas.

Not enough people do this, but the very best way to avoid problems like John's is to make a full system backup before you do *any* heavy-duty maintenance. There is no real substitute for the security of having a complete backup of all files. (I'll be covering backup methods in upcoming columns.) With a good backup, if it turns out you need a file you've deleted, you can just pull it off the backup. Simple!

But what do you do if you never make backups, or make them only rarely? What then?

Try this: If you're not sure if something is safe to delete, move it to a new directory instead of deleting it outright. (That is, make a directory called "limbo" or "holding pen" or some such, and MOVE--- don't just copy--- the file there.) Any programs that need the file will still look for it in the old location, and when they don't find it, will give you an error message. If after a few days or weeks nothing's gone wrong and you've observed no ill effects or error messages relating to the moved file, then you can safely assume the file truly isn't needed, and you can delete it for good.

But if it turns out that you get an error message or some software no longer runs or you need the file for some other purpose, simply put the file back where it came from. Piece of cake!

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

--------------( Please Visit This LangaList Sponsor!) ------------

--------------( the above is an advertisement )--------------

5) Win $10,000! (Really!)

The Recommend-it site used to give away Palm III organizers as an incentive to use their service; but now they've upped the ante--- way, way up!

If you think the LangaList is a worthwhile read, just use the following link to recommend the LangaList to a friend. Your friend just may find a new source of useful information; I just may gain a new subscriber; and you just may win $10,000 or other prizes from the folks at "Recommend-It:"

http://www.langa.com/recommend.htm#1

Or, win a copy of "Poor Richard's E-Mail Publishing: Creating Newsletters, Bulletins, Discussion Groups and Other Powerful Communications Tools." This book has been described as "An excellent, straightforward manual on email publishing, banner ads, driving traffic and especially ethics." (Full details also available via this link):

http://www.langa.com/recommend.htm#2 

Either way, thank you, and good luck!

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

6) Resource Happiness

Just in case you missed or were undecided about implementing the "resource leak" fixes discussed a while ago, check this out:

Hello Fred,

Many thanks for your series on Resource leaks/Memory management/Maintenance. I have implemented most of your recommendations and stand amazed at the difference they have made. After a series of disasters with Win95 and then several crashes with Win98 I was ready to take to my setup with a sharp axe. Fortunately, your series came along at the right moment and since then my machine has been purring along like a Cadillac instead of an old Model T. It is now a pleasure to operate it without the fear of hitting a key and heading for trouble. I enjoy reading all your articles and consider your list emails the best thing since sliced bread.

Yours sincerely, John Philcox

Thanks, John--- I love to get mail like that. 8-)

If you'd like to see what made John's system purr, check out http://content.techweb.com/winmag//columns/explorer/2000/14.htm ; that's the last article in the series, and contains links to the previous ones.

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

7) They Loaded The Code

Do you have a home page or website? (It doesn't matter what size.) Please click over to http://www.langa.com/code.htm, and maybe you can join the hundreds and hundreds of LangaList readers who have "Loaded the Code!" (If you've already "Loaded The Code" and are wondering if your site will appear here or on the Langa.Com web site, please see http://www.langa.com/link.txt )

Speaking of which: Here's another eclectic sample of reader sites--- some professional, some very personal:

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

--- ( Your Clicks On Ad Links Help Keep The LangaList Free! ) ---

Almost 120,000 potential customers and clients
for your business or service are reading this!

Advertising in the LangaList
 costs less than you think. Check it out!

See http://www.langa.com/ratecard.htm

--------------( the above is an advertisement )--------------

8) International Readers

As you may have noticed from various reader mails or sites I've mentioned, a nontrivial number of LangaList readers hail from all over the world. Most times, that's a nonissue. But sometimes, there are snags:

When we get the email from your subscriber list server and want to use our bookmark to access the current issue, this pointer seems only to be updated to the latest issue much later - next day? I always have to link via the url given in the email text to get there. Maybe the current link should be updated before the subscriber email goes out.--- Brian Cohen, Rep. of South Africa

Sorry you had trouble, Brian.

The "current issue" pointer is updated the morning of each new issue's publication. But "morning" where? With 24 time zones to choose from, no matter what time zone I picked, the update would be too early or too late for someone on the other side of the planet.

I have to pick *some* time zone as the controlling time, so (parochially enough) I pick the one I live in: the east coast of the US, which is currently on daylight savings/summer time: UT-4. The rest of the year, it's UT-5.

All time-critical references inside the LangaList follow the same convention. For example, when I mention that a column will be posted "in the afternoon," it means afternoon of the appointed day, UT-4/5.

This convention makes for some timing weirdness, especially for people living east of the prime meridian, and the further east you go, the weirder it gets. (Apologies to all our Australian readers! <g>) But the way I view it is that it's not that the LangaList is coming out late, it's that those eastward-living people are early! 8-)

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

9) Just For Grins

Randy, of http://vanderwoning.com/ fame, offers these maxims:

  • Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic.
  • Conscience is what hurts when everything else feels so good.
  • Talk is cheap because supply exceeds demand.
  • Stupidity got us into this mess... why can't it get us out?
  • Love is grand; divorce is a hundred grand.
  • Even if you are on the right track, you'll get run over if you just sit there.
  • Politicians and diapers have one thing in common. They should both be changed regularly, and for the same reason.
  • There is always death and taxes; however death doesn't get worse every year.
  • People will accept your ideas much more readily if you tell them that Benjamin Franklin said it first.
  • It's easier to fight for one's principles than to live up to them.
  • Indecision is the key to flexibility.
  • If it ain't broke, fix it till it is.
  • I plan on living forever. So far, so good.
  • I am in shape. Round is a shape.
  • Practice safe eating - always use condiments.
  • A day without sunshine is like night.
  • I have kleptomania, but when it gets bad, I take something for it.
  • I am not a perfectionist. My parents were though.
  • You're getting old when you get the same sensation from a rocking chair that you once got from a roller coaster.
  • The real art of conversation is not only to say the right thing at the right time, but also to leave unsaid the wrong thing at the tempting moment.
  • Time may be a great healer, but it's also a lousy beautician.
  • Brain cells come and brain cells go, but fat cells live forever.
  • Age doesn't always bring wisdom, sometimes age comes alone.
  • Life not only begins at forty, it begins to show.
  • You don't stop laughing because you grow old, you grow old because you stopped laughing.

Click to email this item to a friend
 http://www.langa.com/sendit2.htm

return to top of page

--- ( Your Clicks On Ad Links Help Keep The LangaList Free! ) ---

Two Dozen GREAT Computer Books
all personally recommended by Fred Langa, and
all at a 20% Discount!
Check 'em out at

http://www.langa.com/books.htm

--------------( the above is an advertisement )--------------

See you next issue!

 

Best,

Fred

(fred@langa.com)

Please recommend the LangaList to a friend! (And maybe win $10,000!I)

An easier-to read formatted HTML version is available in the "Current Issue" section of http://www.langa.com.  (The HTML version of each issue normally is available by 9AM EST [UT-5] of the issue date.) All past LangaList issues are also available at the Langa.Com site.

return to top of page


Administrivia:

Why are you getting this newsletter? This is a 100% OPT-IN newsletter: There are only three ways to get on the list--- signup via direct email request from you, or signup via the WinMag newsletter page or signup via BrowserTune's email-notification service. If you're getting this newsletter; your name came to me through one of those signup channels. At signup, you also received a confirmation email from my list software---no one is signed up secretly or against their will.

SUBSCRIBE (it's free!): Create and send a new email address it to subscribe-langalist@lyris.dundee.net

UNSUBSCRIBE: From the same address you used to sign up with (it's shown on the first line in the body of each email issue you receive), create and send a new email address to  unsubscribe-langalist@lyris.dundee.net .

CHANGE ADDRESS? LIST TROUBLE? HAVE QUESTIONS? NEED HELP? See http://www.langa.com/help.txt

About the advertisers:  Langa Consulting LLC will never knowingly accept advertising for a fraudulent product, company or service. However, Langa Consulting LLC makes no implied or explicit warranty, recommendation or endorsement of or for the products, companies or services mentioned in the ads.

Disclaimer: (Please see full disclaimer here: http://www.langa.com/legal.htm.) Abbreviated version: The tips and other information given in the newsletter are researched and are believed to be accurate, but we cannot and do not guarantee that all the information here will work on all systems, for all users, all the time. All information herein is offered as-is and without warranty of any kind. Neither Langa Consulting LLC, nor its employees nor contributors are responsible for any loss, injury, or damage, direct or consequential, resulting from application of any information presented here.

This newsletter is a free service of Langa Consulting LLC and is Copyright © 2000 Langa Consulting LLC. All rights reserved.

return to top of page


Please visit the LangaList Home Page