|
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 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 The LangaList 2000-08-17 A Free Email
Newsletter from Fred
Langa
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:
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 --- ( Your Clicks On Ad Links Help Keep The LangaList Free! ) ---
--------------(
the above is an advertisement )--------------
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 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 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 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 --------------(
Please Visit This LangaList Sponsor!) ------------
--------------(
the above is an advertisement )--------------
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 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 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 --- (
Your Clicks On Ad Links Help Keep The LangaList Free! ) --- Almost
120,000 potential customers and clients Advertising
in the LangaList --------------(
the above is an advertisement )--------------
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 Randy, of http://vanderwoning.com/
fame, offers these maxims: Click to
email this item to a friend --- (
Your Clicks On Ad Links Help Keep The LangaList Free! ) --- 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, 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. 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. |
|
|