Lost XP Password
| DearWebby is actually Helmut Morscher, the CEO of Webby, inc.
Originally the "Tech Support Pits" were reports of the funniest tech support incidents, but over the years the
column gradually shifted to answering tech support questions put forward by the readers of the Dear
Webby Humor Letter.
This collection of computer and web advice was started partly because readers demanded an archive, and partly
because some questions were asked again and again. Each page has a different day's Tech Support Pits column.
Tech Support Pits column from Dear Webby's Humor Letter of
09/09/04: Basic Bats - Multiple commands
Tech Support Pits:
Go to TOP
If you bragged about your new menu choice of a
command line window, then you probably quickly learned
that you are in a very small and very exclusive one in a
Million group that has that power tool.
If you played with it, you probably quickly realized that
it would be really handy if you could string a few
different commands together. The good news is that you
Let's assume that you want to first list all the .GIF files
to a text file, then all the .JPG files to another text file,
then combine those two files into a third file: pixlist.txt, in the c:\info
The commands for that are simple enough:
dir *.gif > giflist.txt
dir *.jpg > jpglist.txt
copy giflist.txt + jpglist.txt c:\info\pixlist.txt
Open NoteMaid, NotePad or WordPad and save a file to
Paste those 3 lines ito it
Add a 4th line:
add an empty line past that, and save the file.
Now use the Explorer and browse to your pictures directory.
Highlight it, right-click and select
"Open a command window here"
type: dirlist an hit Enter
The dirlist program will run and exit (close it's window).
You can now use a spreadsheet or word processor
program to open c:\info\dirlist.txt and use the file list.
There is an easy way to make it use a different destination
file. Edit the dirlist.bat to make the 4th line:
copy giflist.txt + jpglist.txt c:\info\%1-pixlist.txt
Now open the command line and type
and hit Enter.
Look in the c:\info directory, and you will see a new file
With the new, edited dirlist.bat, you have to remember to
type the name of the destination file after a space after
To remind you of that, edit the dirlist.bat and add this as
the first two lines:
ECHO dirlist filename
That will echo the reminder of how to use it onto the screen
and pause for you to hit any key after reading that. Then it
will continue and run. If you forgot, no big deal. At least
now you will be reminded and can run it properly.
If you have any questions about any of the command line
stuff, write to me and I'll answer you directly. Here on the
Humor Letter we better get back to topics that don't cause
the WebTVers and Mac users go green with envy.
| Give a Gift Subscription | Unsubscribe|