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://langa.com/help.htm
Questions about the advertisers? See the end of this note. Please also see legal notices at the end of this note. LangaList: ISSN 1533-1156

Please recommend the LangaList to a friend! (And maybe win a prize!)

An easier-to read formatted HTML version of this newsletter is available
<a href=" http://langa.com/newsletters/2006/2006-04-13.htm ">here</a>

The LangaList
Standard Edition

2006-04-13

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

Please visit our sponsors and help keep the LangaList S.E. free!

Contents:

1) Free Tool & Demo From Fred
2) Other Deletion Tools
3) Who You Gonna Call?
4) Gone Like A Flash (Drive)
5) ID That USB
6) Is This Information Useful?
7) Free .PST Backup Tool
8) More Reader Sites!
9) Lost Digital Pix: Found!
10) Uncensored Searches
11) Create Panoramic Photos, Free
12) SATA, PATA, IDE...
13) Sneaking EXE's Past Mail Blocks
14) Optional Links
15) Just For Grins

Next Issue:
2006-04-17

 

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

Free Computer Performance Scan!

Run our free Optimize scan to find out how to fine-tune your Internet and
System settings. Identify PC registry cobwebs and get rid of hard drive
clutter. Our Optimize diagnostic provides a custom report that details what
is hurting your PC's performance: Scan Now!

Click:
http://www.marketerschoice.com/app/adtrack.asp?AdID=211487

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

 

1) Free Tool & Demo From Fred

Hi Fred. I've been a subscriber to the Langa-List since its inception, and a long-time Plus member. I used to enjoy the articles you wrote for Windows Magazine all those years ago!

I've got a problem I'm hoping you can help me out with. I've been unable to find a resolution to my problem using Google searches, which is unusual in its own right as I'm usually able to find things where others fail!

I'm in charge of image management for our company, and we recently rolled out the first 700 notebooks with Windows XP SP2. What we're finding is that the harddrives seem to be getting polluted with empty temp directories as clients use the machines, all with a similar name - eg: "1a3f2.tmp", "3g6w6.tmp"

Please note that these are directories (folders) NOT files, all ending with ".tmp"
I'm trying to work out some way of deleting all of these .tmp directories that are being created in the root of the C: drive and root of the D: drive. I've been unable to find out what process is creating these tmp directories. If I knew that I'd be able to figure out a solution based on the application itself.

The standard DOS commands don't work because the RD and RMDIR commands don't support wildcards.

I've already got a scheduled task that cleans up temporary files created by our VPN client, and I'm hoping to find some way to update this batch file to remove these ".tmp" directories as well. This way I can push it down to all of the existing XP Systems using our Patchlink utility. Any help you could offer to find a solution to this would be greatly appreciated. --Don

We'll come back to a possible cause in a moment, but first let's look at the problem at hand: Automatic deleting of folders. It's a little tricky--- deliberately so, because it's a potentially dangerous thing. (Delete a folder, and the folder goes away, along with its contents, including the contents of any/all subfolders inside the deleted folder--- one command could wipe out an entire hard drive!)

But there's a workaround that's not too hard to cobble together, especially if you know where the files are, and what the format of their names is. (as is the case here.)

The first step is to gather the names of all the folders you want to target for deletion. This simple command will output a list of all the *.tmp folders and files in the current directory to a single, plain text file called "delme.txt:"

dir /b *.tmp >delme.txt

The "/b" switch tells the dir command to do a basic listing--- just the matching names, with no header, date, filesize or other info. In other words, delme.txt will contain just the names of folders (and files) with the tmp extension--- and that's just what we need.

As Don says, the command to remove a directory is RD. To tell RD to include all subdirectories, and to do so in quiet mode (without stopping to ask for confirmation), you add the /s (for subdirectories) and /q (for quiet) switches. In Don's specific case, he knows the folders are empty, so the /s switch isn't really needed. But adding it ensures that the tmp folders will get whacked, even if they do contain something.

So (bear with me, now) in manual mode, the full command to delete a folder called (say)  "3g6w6.tmp" would be:

rd /s /q "3g6w6.tmp"

The quotation marks also aren't essential in this example, but they're good to include because they allow for names that might have spaces in them that otherwise might mess up the command.

So, now that we know the format of the commands we need, all we need is a simple script or program that will take the names of the tmp folders listed in delme.txt and insert them into a series of properly-formatted RD commands.

In other words, we need a tool that will prepend

rd /s /q "

before each name, and append a single close-quote (") after each name. It'd be nice if the tool could then either perform the newly-constructed commands directly, or output them in a new list, perhaps in batchfile form for automatic execution by the operating system.

Here's a very quick and dirty demo, again using Don's examples. It has three parts:

First, there's a batch file I've called "DeleteTempFolder.bat" that contains these core lines:

c:
cd \
dir /b *.tmp >delme.txt
deltmp.exe
delme.bat

The first two lines switch to the C: drive, and to the root (\) directory, where Don's tmp folders live. You could edit the batch file to work on *any* folder where tmp files live, however.

The next line we've seen before, above: It simply outputs a basic listing of all the *.tmp files in the current directory. the listing is called "DELME.TXT" and is a generic text file; nothing special about it at all.

The next line runs a crude little purpose-built demo tool I ginned up called DELTEMP.EXE. It's an unadorned program that runs with no interface at all--- it's hardwired to look for a file called DELME.TXT in the C:\ directory, and if it finds it, to take each name in DELME.TXT, wrap it with the RD commands as shown above, and output the processed names in a new batch file called DELME.BAT.

The next line in DeleteTempFolder.bat then calls the newly-created DELME.BAT, which then performs the actual folder deletions.

The only two files you need to make this work are DeleteTempFolder.bat and Deltemp.exe; the other two files--- delme.txt and delme.bat--- are automatically generated each time.

To give you a starting place, DeleteTempFolder.bat and Deltemp.exe are available here, for free:

http://langa.com/extras/deltemp/deltemp.zip

(If clicking doesn't work, right click and "save as.")

Download the Zip file and uncompress the two files inside it to C:\ . Run DeleteTempFolder.bat, either manually or via Task Scheduler: It will gather the names of the all tmp folders in C:\ and delete them as above. (If your C:| doesn't have any tmp folders in it, you can create some fake ones first to see the demo in action.)

Again, this is a quick and dirty approach--- inelegant, but effective, and intended AS AN EXAMPLE of what you can do. As such, it's a "use at your own risk" thing and is NOT intended as a finished, production-quality tool--- it's a long, long way from that! <g> Your tools and preferences may differ; with more time and effort, and better tools, you can come up with a far slicker final product.

But the above should give you a running start, and (hopefully) spark further ideas you can use to make whatever tool you need for your exact circumstances.

Click to email this item to a friend
http://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) Other Deletion Tools

The custom process described in #1, above, is sometimes needed because many of the free and commercial file-deletion tools shy away from working in the root directory, where a mis-deletion might whack a whole chunk of the hard drive's contents.

But for directories below the root, many tools will work:

For example, the simple, free program called "Sweep" and found at http://www.csc.calpoly.edu/~bfriesen/software/console.shtml  will recursively perform the same command on all directories below the current one. Thus this simple three-line batch file would delete all tmp folders on the hard drive in any location below the root:

c:
cd \
sweep RD /q *.tmp

And there are many other tools to do the same, or similar, things. A collection of old DOS utilities at http://ftp.at.gnucash.org/pc/dos/msdos/dosutils/ contains "tsbat82.zip," which in turn contains a free batchfile "sweep" tool you can modify as you wish. And http://dirsweeper.toolazy.me.uk/ has a native Windows tool called "DIRsweeper," also free; but which requires that the beefy .NET framework be installed in all the PCs that will run DIRsweeper.

Similar functions can be found inside other tools, as well. For example, jv16 Powertools, Easycleaner, and many other third-party tools have built-in facilities to find and delete tmp and other temporary files. ( http://www.google.com/search?q=delete+temporary+files )

So, you see you have many options--- custom, free and commercial--- for file deletions. No matter what you're trying to delete, there's almost surely a tool for the job. <g>

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

return to top of page

3) Who You Gonna Call?

Dear Fred; I have been a Plus subscriber for several years, and I always find the Langa List Plus very interesting and informative.

Lately I've been having a strange problem: While online (using IE6) I occasionally hear strange sounds - knocking on a door, and a loud door slam. These sounds just pop up at loud volume, and happen while I am on various web sites. The latest was the web site of the New York Times.

I'm very security conscious and I am using Norton Internet Security 2006, and the latest version of Windows Defender. There are no viruses or other malware that I can detect on my computer. I've searched my hard drive and there are no such sound files on it. When this happens there are no other windows or web pages hiding in the background.

Any ideas? Thanks for your help, Steven Spiegel

Assuming that an Exorcism isn't really necessary, and that it's not dear departed Aunt Midge trying to contact you from the Beyond, my guess is that you're hearing Instant Messenger-type sounds. Many of them use door knocks and slams to indicate people entering a "room" or conversation or leaving.

But with AIM, Yahoo messenger, MSN Messenger, and a host of alternatives, there's no way I can tell you exactly what to look for or where--- it depends on what's on your PC.

You might try running Task Manager (Ctrl-Alt-Del in XP) to see what's running: anything in the Applications of Processes tabs with "messenger" in it's name would be a likely first suspect. You can also try Control Panel's "Add or remove programs" to see what's installed.

Once you know what's running, you can uninstall it,  or at least explore its interface to better control it. IM toys running unattended are also a security problem; ideally, you only want such software running when you need it, and can monitor it.

Of course, it's also possible that an IM utility isn't the cause: Some forms of intrusive ads (often Flash animations, but sometimes Java applets) also can trigger odd sounds at seemingly-random times. If the ad has scrolled off-screen, you might not see the visual effects that the sound is meant to accompany. When you hear the sounds, you might scroll around to see of some ad is trying to get your attention.

And if *that* isn't it, try this: http://langa.com/u/ak.htm

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

return to top of page

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

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

4) Gone Like A... Flash Drive?

Fred, In http://langa.com/newsletters/2006/2006-03-30.htm#4 , you said and I quote, "Nothing's interactively written to the flash drive. This makes things much faster, and also increases the life of the flash device by not needlessly consuming the device's finite number of write cycles."
 
One of the reasons I bought a USB flash drive is that, without any moving parts, I figured it would last for many years. Although you were writing about something else altogether, you're telling me to not get my hopes up. QUESTION: What is, then, a reasonable expectation for the life of a USB flash drive?  How many read-write cycles should I hope for? Thanks! ---Bruce Fraser

Alas, flash drives are quite finite, although their life depends very much on how heavily they're used. We discussed some lifetime estimates in "Life Expectancy Of Flash Drives?" http://langa.com/newsletters/2005/2005-12-08.htm#4

Besides electrical life, there also can be issues with the plug itself; it's a natural stress point, and any repeated flexing of the joint between the mechanical plug and its electrical connections can lead to failure of the connections. Many people who routinely use flash drives use a flexible USB extension cable that allows for easier, better alignments of the plugs and sockets; and/or to let the (relatively) disposable cable take the brunt of the mechanical abuse, rather than the flash device itself.

And here's something curious: Microsoft is headed in exactly the opposite direction. Vista will be able to use a flash drive as temporary RAM. The idea, which probably seemed good at the time, was that you could plug a flash drive to any Vista PC, and add any unused memory in the flash device to the RAM pool available to the PC: Need more RAM to handle a giant spreadsheet or presentation? No problem: Stick a flash drive in a socket, and tell Vista to use it as RAM.

But in other than emergency use, this seems like maybe not such a great idea to me: RAM can get written to *a lot*, and using a flash drive as vanilla RAM seems like a great way to use up its finite number of write cycles in a hurry. And anyway, Flash RAM is much, much slower than standard RAM.

But hey: Microsoft didn't ask for my opinion. <g>

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

return to top of page

5) ID That USB

In "How To Tell USB 1 from 2" (#10 in http://langalist.com/plus/newsletters/2006/2006-03-27plus.asp ) we discussed several free ways to tell USB 1.x from USB 2.0 devices and sockets, when they have no exterior labels.

Here's a  not-too-expensive commercial method:

Hi Fred: I'm a long time registered supporter with a great interest in diagnostics and utilities. I pondered over the USB identification problem and finally came across the following. http://www.usbfireinfo.com/

This does allow you to identify internal and external USB hubs et al. Interesting product and not too expensive. Cheers, Peter McDonell

Thanks, Peter. For someone with many ports to identify or a pressing need to learn as much about a USB setup as possible, the $20 fee for this software would no doubt be very reasonable.

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

return to top of page

6) Is This Information Useful?

If you think the LangaList is a worthwhile read, maybe a friend would find it useful too! Just use the following link to recommend the LangaList--- your friend may find a new source of useful information and you just may win one of three FREE ONE YEAR SUBSCRIPTIONS to the LangaList Plus! edition given each month. (If your name is drawn and you're already a Plus! subscriber, your current subscription will be extended by a full year.)

Check out the details at http://langa.com/recommend.htm . Thanks for recommending the LangaList--- and good luck!

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

return to top of page

7) Free .PST Backup Tool

Concluding our recent discussion of Outlook's PST files, here's a free tool from Microsoft:

Fred, I've been using a tool from Microsoft called pfbackup.exe. I use it to keep all my outlook settings, .pst files backed up to cd and NAS device. it works very very well and I think your readers would like it. I've enjoyed your newsletter for many years and will continue to subscribe. Thank you, Ken Collins

Thanks, Ken. The tool is available for free download at http://tinyurl.com/oh4l . Microsoft says the tool will work with outlook 2000, 2002 and 2003. Well worth grabbing, if you have any of those versions!

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

return to top of page

8) More Reader Sites!

Do you have a home page or website? (It doesn't matter what size.) Please click over to http://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://langa.com/link.txt )

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

View A Randomly-Chosen Reader Site From Among All Listed
http://langa.com/randomlink.htm

Manually Browse All Posted-to-Date Sites Starting At
http://langa.com/readersites.htm

Cassette Land
http://cassetteland.gemm.com/

donnie's collection
http://www.geocities.com/packratdes/collection.html

"stopwalmartnj"
http://www.stopwalmartnj.com/

Appalachian Hand-crafted Shepherds crooks Irish Shillelaghs...
http://www.caneman2.com

sales and marketing consultantgs
http://spaces.msn.com/gregseggs/

Pioneer Aviator "Eielson" Museum
http://www.eielson.org/

Stanford-Palo Alto Users Group for PC
http://www.pa-spaug.org/

silk boutonnieres and corsages
http://www.boutonnieresandcorsages.com/

Veritas Rei Publicae
http://www.thenews4u.com/

The Outernet
http://spaces.msn.com/gregseggs/

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

return to top of page

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

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

9) Lost Digital Pix: Found!

Hi Fred: Thought this might be useful.

On a recent holiday I was reviewing pictures on the camera when I suddenly had a whole screen full of question marks, indicating corrupt data, together with a message 'Error reading CF card'. I turned off the camera, reseated the card several times and turned the camera back on. All appeared to be OK at first sight, but then I realised that approximately 40 pictures had gone missing.

On returning home, I plugged the camera into the PC and downloaded the pictures that were visible, but still could not access the missing ones. I tried putting the card (Crucial 128Mb Compact Flash) into a card reader hoping to access it with some file recovery software, but could not access the card due to an 'I/O device error'. I then tried putting it back in the camera, hoping to access it there as an external drive - but no joy there either.

I emailed Crucial for suggestions - no help there except for the offer to replace the card under the lifetime warranty.

So what to do?  The only way that I could access the card was via the camera, but this would not allow access to the corrupted pictures.

Finally, with nothing to lose, I reasoned that if I formatted the card in the camera then I might then be able to access it in the card reader using file recovery software. It worked!  Using PC Inspector (free from http://www.convar.com) I was able to recover all except two of the lost pictures. Best wishes Peter Edwards, Stratford-upon-Avon, UK

Glad it worked for you Peter. Indeed, it's worth remembering that most digital camera memories are treated as virtual hard drives (OK: flash drives) using the utterly normal FAT file system. While some tools are especially configured for digging photos out of the digital wreckage of a scrambled drive, almost *any* normal file recovery tool at least has a shot at recovering lost pictures from camera memory.

See:
http://langa.com/newsletters/2004/2004-06-07.htm#5
http://langa.com/newsletters/2004/2004-05-31.htm#5
http://tinyurl.com/mmc6u

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

return to top of page

10, 11, 12, 13, 14) Plus! Edition Only:

Today's LangaList Plus! Edition contains about 40% more content including:

  • Uncensored Searches
       (avoid repressive government obstructions)
  • Create Panoramic Photos, Free
       (easily "stitch" separate photos into one)
  • SATA, PATA, IDE...
       (sorting out the alphabet soup)
  • Sneaking EXE's Past Mail Blocks
       (reader uses this trick)
  • Optional Links
       (by reader request)

DID YOU KNOW that Plus! subscribers have access to over 100,000 additional words in special features, extra content and private links, all on a private web site? All that, plus 40% more content in every issue, for around a dollar a month!

Plus! Edition info: http://langa.com/plus.htm 

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

return to top of page

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

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

15) Just For Grins

After V-8 powered Canadian snowblowers ( http://langa.com/newsletters/2006/2006-04-03.htm#14 ) and jetwash-powered Swedish snowblowers ( http://langa.com/newsletters/2006/2006-04-06.htm#15 ), we now have this:

Fred: In your just for grins section of the latest LangaList, you sent a challenge (informally)  concerning snow clearing equipment. Here is an excerpt about a snowblower developed by the Canadian Pacific Railroad to clear the tracks in the Canadian Rockies.
The Canadian Pacific Railroad introduced eight rotary plow units to Canadian routes in 1888. The largest of these -- Number 101 -- had a plow wheel diameter of 10 feet driven by a main shaft 8.5 inches across. But even Number 101 was inadequate for the snow conditions the Rockies threw at it. The rotary plow worked well in dry Prairie snow, but in the wet, packed snows of the West Coast, the snow-throwing flange performed poorly. To overcome this, the Leslie Brothers increased the plow wheel diameter to 11 feet, designed a scoop wheel to replace the square-fan collector and added cut wideners to the housing. This design proved so successful that it changed little over the next century. With its introduction in the Rockies, the Western Canadian rail routes could now operate year round.

They still use similar units today. It is interesting to note that it is not used if there is the threat of avalanches, as the vibrations during operation could trigger one.  ---Ron Nieuwenhuis

Hi, Fred! Many kudos for your newsletter! Turns out that using jet engines for snow blowing duty is done here in the states every once in a while. See most (but not all) at http://membrane.com/~elmer/rail/snow/misc/ or also a closeup at http://www.railpictures.net/viewphoto.php?id=99606. As you can imagine, they are pushed by a locomotive! Cheers, George Fleming

Fred: Not to be outdone, over here in England, the L.N.E.R. railway tried out a jet engine for snow clearance in the winter of 1947. Apparently it was not a success as it not only blew away the snow but also the ballast under the track! This also caused damage to lineside buildings as the flying ballast broke windows. The technology was also rather primitive as they simply bolted the jet engine to a railway wagon. There is a picture of it in action at the following link: http://tinyurl.com/h9qhn Also, the Cumbrian Railway tried out a similar idea as can be seen:
http://www.btinternet.com/~l.gilpin/crahome/jourvol6-11-2.htm  I guess the modern technology has improved since... I came across this link which shows a wonderful experiment carried out in 1966 in  your country by the NYC railroad for a jet powered train. I think the first two photographs on this page are great. Wonder what the noise was like? http://www.trainweb.org/railpix/acelatest1.html  As ever, thanks for all the hard work that you put into producing the Langalist. It is a very helpful publication and worth every penny (or cent I should say?) Thanks, Edwin Chappell

I remain awed by the cumulative knowledge of LangaList subscribers. There's no subject too far afield--- some readers, somewhere, are experts in it! <g>

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

return to top of page

(Give a gift subscription to the LangaList Plus edition!
Click <a href= " http://langa.com/plus_gift.htm ">here</a>)

The LangaList is published about 72 times a year, or about 6 times a month. See you next issue, 2006-04-17!

Best,

Fred
( Editor@Langa.Com )


Please recommend the LangaList to a friend! (And maybe win a prize!)

An easier-to read formatted HTML version is available in the "Current Issue" section of http://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:

UNSUBSCRIBE (instant removal!): http://langa.com/leave_langalist.htm

SUBSCRIBE (it's free!): http://langa.com/join_langalist.htm

CHANGE ADDRESS? LIST TROUBLE? HAVE QUESTIONS? OTHER PROBLEM? NEED HELP? See http://langa.com/help.htm

This newsletter is SPAM PROOF and requires two levels of subscriber confirmation before delivery begins: See http://langa.com/info.htm

About the advertisers: http://langa.com/privacy.htm#ads

Disclaimer: http://langa.com/legal.htm  In brief: 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 your choosing to use any information presented here.
This newsletter is a service of Langa Consulting LLC and is Copyright © 2006 Fred Langa / Langa Consulting LLC. All worldwide rights reserved. LangaList: ISSN 1533-1156

return to top of page


Please visit the LangaList Home Page