I've never seen this mentioned in on-line help or anywhere else and I thought
it so amazingly cool I thought I'd share it with the group ...
I was cleaning up some old archives and, in a directory listing, had a string
of consecutive files and directories I wanted to delete. Using rm, I could have
typed
for %f in (dir1 dir2 dir3 file1 file2 dir4 junk1) do rm -rf
%f
but I found a better way.
For a non-destructive experience, try this in a command window.
Find a directory with a plethora of files. In my case, my "new" directory
has a bunch of such stuff in it and a partial directory listing is reproduced below:
14-02-97 1:59p 114,549 0 a--- agrep332.zip
10-04-98 4:50p 516,359 0 a--- angband-283-os2.zip
14-02-97 10:54a 8,782 0 a--- AofF_14.mid
14-02-97 10:54a 8,819 0 a--- AofF_15.mid
14-02-97 10:54a 9,504 0 a--- AofF_16.mid
14-02-97 10:54a 6,175 0 a--- AofF_17.mid
28-07-97 1:55p 261,863 0 a--- apcodec6.zip
14-07-97 4:02p 38,548 0 a--- assoed04.zip
Using the mouse, mark the block of file names - just the file names, not the
preceding gumpf so what you highlight is, in my example:-
agrep332.zip
angband-283-os2.zip
AofF_14.mid
AofF_15.mid
AofF_16.mid
AofF_17.mid
apcodec6.zip
assoed04.zip
Then press button 2 and select copy. You now have that block of file names in the
clipboard. Now for the cool part.
1. Type the following command:
for %f in (
That's all. Press enter. You should see a prompt
More?
2. Chord MB1 and MB2. All the file names (and any directory names) you highlighted
in the preparatory stage will be entered one at a time, each on a separate line
preceded by More? .
3. Press enter. You'll get the More? prompt again.
4. Complete the command:
) do echo %f
and be amazed.
You've just executed a command for each of a list of files and/or directories
pasted from a directory listing without having to redirect the output to a file
and edit that file. What is more, if your directory listing is paged, you can repeat
the process using the command recall functions. Select another bunch of names and
copy them as in the preparatory stage described above. Then ...
5. Type "for", press F1 and then enter
6. Chord MB1 and MB2 again to paste as before
7. Press enter
8. Press the up-arrow key to get the command completion line, then enter.
Be amazed again. Of course there is nothing stopping you from revisiting the
directory listing and copying/pasting into as single command block but using the
command recall facility means there is less to redo if you stuff it up.
If you like this sort of thing then I'd suggest getting npswps (npswp182.zip)
from Hobbes and installing that. The ONLY feature I activate is the quick text copy
function but that alone is truly wonderful.
To start certain profile you have to put the profile name in quotes right after
the -P without a space between them. I think the profile name is case sensitive
also.
Since I usually leave my PC on, I didn't want to have to reboot every time just
to use the scanner (which stays off to save wear and tear on it). But, I found this
nifty switch that seems to allow me to turn on and use the scanner any time, regardless
of the power state of the scanner at boot time.
So if you are using an Adaptec SCSI card, you may also be able to use this switch
in your config.sys file:
BASEDEV=AHA152X.ADD /v /F:6
/F:x - Force the target SCSI ID x exist. Host adapter will assume
that the target SCSI ID x is connected to SCSI bus.
Just power on the scanner, wait until the "ready" light comes on, then
start your scanner software. Works for me!
With this and IMPOS/2's REXX DLL for scripting scanner commands, I am one happy
camper!
I highly recommend Impos/2 too. Excellent tool!
Bob
You must install The System Management Driver before you install any of the TP
utilities. You can do this by one fo the following methods:
First, use the device driver install that is in your system setup folder, under
install/remove. Second, the easier way, I believe, is just to copy the driver to
\os2\boot, and then add the line:
BASEDEV=AODBSMD.SYS
to your config.sys. Mine was added at the bottom, so I don't think that position
in the file is critical.
You might also want to take a look at the unofficial Warped thinkpad page: http://www.tpwarper.com
http://www.os2bbs.com/os2news/Communicator.html
When these bugs are fixed, then I might change it into a list of OS/2 specific
features we want. Alternatively, if there is demand, I may add that now in a separate
table...
Please give me feedback... i.e. this sucks, get rid of it, this is cool, this
could be better if you did xyz... whatever!
Another customization feature of the toolbars is that you can drag any of the
3 toolbars with the left mouse button held, to re-arrange their sequence.
There are some things that might escape notice.
1. You need to have NetBIOS protocol installed on the code server. If you installed
File and Print Services then you have it already. It may work with NetBIOS over
TCP/IP but I can't vouch for that. If you don't have F&PS installed then you
can get away with simply installing the protocol using MPTS. That'll get you through
the install process but it won't provide resource sharing afterwards so you are
better off installing F&PS up front.
2. If you don't have a regular network adaptor on your laptop and you are going
to use a parallel cable then for a network adaptor you need to choose SSW Parallel
port NIC-less adaptor This has to be done on the code server PC and of course F&PS
has to be directed to that "adaptor".
3. The parallel cable you use is not a "straight through" thing. It
is a "Turbo Laplink" cable which is the parallel equivalent of a null
modem cable. You can build one if you have the parts or you can buy one for about
six dollars.
4. If anything goes wrong, it is probably a faulty cable. Really. The whole thing
is so smooth and trouble-free ... This is the wiring I used. There are some specifications
on the 'net for cables with fewer connections but I can't vouch for them.
25 pin 25 pin
====== ======
pin 01 <----> pin 01
pin 02 < > pin 15
pin 03 < > pin 13
pin 04 < > pin 12
pin 05 < > pin 10
pin 06 < > pin 11
pin 10 < > pin 05
pin 11 < > pin 06
pin 12 < > pin 04
pin 13 < > pin 03
pin 14 <----> pin 14
pin 15 < > pin 02
pin 16 <----> pin 16
pin 17 <----> pin 17
pin 25 <----> pin 25 (Grd---Grd)
Jon Saxton <triton@ibm.net> OS/2 software developer
U.S. agent for Triton Technologies International Ltd
I have used OS/2 on an Nec versa 2400 and now a winbook xl. No problems. You
will probably need to have as the first line in the config.sys
Basedev=reserve.sys /mem:ca00,2000
to force the socket driver off of a rom. (pc cards are seen as memory only with
out the above lline.) For the ir support, you have to add the port number and irq
to the irdd.sys line (this little item is not documented anywhere)
Clark
For those who are interesting in trying out the Wallpaper feature in Netscape,
try this site:
So i asked Kari Jackson(of Innoval), and she gave me the answer, which I thought
I would share:
make a rexx file with this in it:
/* program to create a Drives object */
call rxfuncadd "SysCreateObject","RexxUtil","SysCreateObject"
call
SysCreateObject
'WPDrives','Drives','<WP_OS2SYS>','ObjectID=<WP_DRIVES>;','R'
I have no idea what it means, but it worked!! :)
As you all know RSJ hides the cdr drive letter from you and makes it unaccessable
right? Well not quite. In an email from RSJ I was made aware of how to unhide the
cdr... in order to do it you must do this:
If you are using RSJ CD Writer 2.59 or above you may change
the CONFIG.SYS line
BASEDEV=OS2ASPI.DMD
to
BASEDEV=OS2ASPI.DMD /ALL
After booting your machine, the recorder will be usable as standard CDROM drive,
and you will be nevertheless be able to attach the CD to our filesystem. But please
ensure that you're not using the CDROM drive letter at the same time when the CDR
is attached to RSJ's filesystem, otherwise this will result in errors.
1) making a copy of netscape.exe to a different directory
2) fortifying that copy
3) booting from floppies and replacing the original netscape.exe with the fortified
one.