Virtual OS/2 International Consumer Education

September 1998

Previous Page | Index | Next Page
VOICE Home Page:

OS/2 Tips

We scan the Web, Usenet and the OS/2 mail lists looking for these gems. Have you run across an interesting bit of information about OS/2 recently? Please share it with all our readers. Send your tips to

September 9, 1998 From Jon Saxton on the Team OS/2 Help Desk List this long but rather neat trick for deleting files using OS/2's cut/paste in a command window.

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---
10-04-98 4:50p 516,359 0 a---
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---
14-07-97 4:02p 38,548 0 a---

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:-
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


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 ( from Hobbes and installing that. The ONLY feature I activate is the quick text copy function but that alone is truly wonderful.

September 5, 1998 from Keith Gorham on the NS4OS2 List this tip on a Communicator for OS/2 beta command line option:

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.

September 4, 1998 Bob Wittig on Team OS/2 Help Desk List offers this tidbit for anyone running an Adaptec 1505A scsi controller:

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:

/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!


September 4, 1998 Patrick Ash on Team OS/2 Help Desk List has this tip for anyone having problems installing the "Thinkpad Utilities":

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:


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:

September 1, 1998 From Steve Wendt on the NS4OS2 Mail List:
I've created a page with some basic info on Comm/2, as well as a table listing some of the problems with it. It certainly is incomplete, especially in the area of mail/news, since I don't use those. I could use everyone's help in identifying the *reproducible* problems that I have missed.

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!

September 1, 1998
Still trying to figure out how to drag a URL from the new Communicator beta to the desktop? On the Toolbar next to the Bookmarks Icon is a little icon that looks like a noodle or some indecipherable item. Click the Right Mouse Button on this and drag it to the desktop. Currently you can't drag it anywhere else except to the Personal Toolbar. If you do place it in the Personal Toolbar and then decide you want to getrid of it you have to open up the Bookmarks (Ctrl-B), and then delete it in there.

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.

August 28, 1998 For all you folks wondering how to install Warp on a laptop with only a swappable CD-ROM and Floppy, but you do have another PC with OS/2 already installed, here is an excellent pointer from Jon Saxton on the Team OS/2 Help Desk List:
You invoke the "Remote Install" process in your Install/Remove folder.

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 <> OS/2 software developer
U.S. agent for Triton Technologies International Ltd

August 28, 1998 - From Clark Tompsett in comp.os.os2.misc who has this keeper on getting pc cards to work in some laptops under OS/2:

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)


August 26, 1998 - From RILINDO FOSTER on the NS4OS2 list:

For those who are interesting in trying out the Wallpaper feature in Netscape, try this site:

August 23, 1998 - Sande Francis on the TeamOS/2 Help List:
Recently I asked how the drives object might be recreated. several folks told me to copy it from a recent archive, some recommended a program called ORC. i didnt have a copy anywhere, so could do the copy from archive thing and ORC wouldnt do it either.

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

I have no idea what it means, but it worked!! :)

August 22, 1998 - From: Robert Deed (

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




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.

August 19, 1998 - Mark Klebanoff on comp.os.os2.beta gave this suggestion to anyone having a problem trying to turn on 128bit encryption in Communicator for OS/2 using Fotify but getting an "Unable to access file as file is in use" error:

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.

Previous Page | Index | Next Page