home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / HATCH / WWIVNEWS.ZIP / 9407_4.NWS < prev    next >
Text File  |  1994-07-24  |  21KB  |  501 lines

  1.      WARNINGS:
  2.  
  3.      This option should not be used if:
  4.  
  5.         - the disk was partitioned using Storage Dimensions'
  6.           SpeedStor utility with its /Bootall option
  7.         - more than 4 partitions exist
  8.         - certain dual-boot programs are in use
  9.  
  10. Storage Dimensions' SpeedStor utility using the /Bootall option redefines the
  11. drive's physical parameters (cylinder, head, sector). /BOOTALL stores
  12. information on how the drive has been changed in an area of the master boot
  13. record that MS-DOS does not use. FDISK /MBR will erase that information,
  14. making the disk unusable.
  15.  
  16. Some older OEM versions of MS-DOS and some third-party partitioning utilities
  17. can create more than 4 partitions. Additional partition information is
  18. commonly stored information on partitions in an area that FDISK /MBR will
  19. overwrite.
  20.  
  21. Some dual-boot programs have a special MBR that asks the user which operating
  22. system they want on bootup. FDISK /MBR erases this program. Dual-boot
  23. systems that boot whichever partition is marked Active are not affected by
  24. FDISK /MBR.
  25.  
  26. If you have a Boot Sector Virus, just boot from a known "clean" floppy disk
  27. that's write protected and which has FDISK on it, and run FDISK /MBR.
  28.  
  29. ─────────────────────────────────────────────────────────────────────────────
  30.  
  31. FOR %%V IN (/SOMETHING)
  32. ───────────────────────
  33.  
  34. How can a batch file (without 4DOS) determine from which drive it has been
  35. started?
  36.  
  37.       Example:  C:\>A:TEST.BAT
  38.  
  39. Now my batch should be able to find out that it is located on drive A: (not
  40. the path, only the drive!).
  41.  
  42. In a batch file, the variable %0 contains the name of the batch file as it was
  43. typed at the command line. If you run the batch file as A:TEST.BAT, %0 will
  44. be "A:TEST.BAT". If you have the directory on your path, and simply type
  45. TEST, then %0 will be "TEST". The drive, path, and extension will only appear
  46. in %0 if you enter them in the command used to call the batch file (either
  47. typed at the command line, or called from another batch file). So, you must
  48. specify the drive as part of the batch filename for this to work.
  49.  
  50. To extract the drive only from %0, use the undocumented FOR %%V in /SOMETHING
  51. command:
  52.  
  53.      set drive=
  54.      for %%v in (/%0) do call test2 %%v
  55.      echo Calling drive is %drive%
  56.  
  57. ...where TEST2.BAT is:
  58.  
  59.      if not '%drive%'=='' set drive=%1:
  60.  
  61. FOR %%V IN (/SOMETHING) DO WHATEVER will do WHATEVER twice -- the first time
  62. with %%V set to the first character in SOMETHING ("S"), the second time with
  63. all the remaining characters in SOMETHING ("OMETHING"). If SOMETHING is only
  64. a single character, WHATEVER will only be called once, with that character in
  65. %%V. If the single character is a wildcard (? or *) that wild card will not
  66. be expanded to a set of filenames. (The main purpose of this feature is
  67. apparently to allow inclusion of the literal characters "?" and "*" without
  68. them being expanded.)
  69.  
  70. This works in DOS 3.30 and later.
  71.  
  72. ─────────────────────────────────────────────────────────────────────────────
  73.  
  74. FORMAT /AUTOTEST
  75. ────────────────
  76.  
  77. The autotest parameter will allow FORMAT to proceed, checking the existing
  78. format of the disk (unless the /U parameter with DOS 5 or 6 is also present),
  79. and proceeding with the format.
  80.  
  81. All this will take place with no delay and no waiting for user input. It will
  82. also end without pausing. It will not ask for a volume label or whether to
  83. format another diskette.
  84.  
  85. WARNING!  This procedure will also work on hard drives!  Be very cautious if
  86. you plan to use this feature!
  87.  
  88.  
  89. FORMAT /BACKUP
  90. ──────────────
  91.  
  92. This works exactly like /AUTOTEST, but it does ask for a volume label.
  93.  
  94.  
  95. FORMAT /SELECT
  96. ──────────────
  97.  
  98. This is like the DOS MIRROR command... For safety-fanatics only.
  99.  
  100.  
  101. FORMAT /SELECT /U
  102. ─────────────────
  103.  
  104. Just makes a disk unreadable. Guess it could be handy?
  105.  
  106.  
  107. FORMAT /H
  108. ─────────
  109.  
  110. In DOS 3.30 (not tested with other versions), FORMAT /H will cause the format
  111. to begin immediately after pressing Y in response to "Format another", rather
  112. than displaying "Place disk to be formatted in drive x: and press Enter" on a
  113. second and subsequent disks.
  114.  
  115. In DOS 5.0, FORMAT reports "invalid switch".
  116.  
  117. ─────────────────────────────────────────────────────────────────────────────
  118.  
  119. IF EXIST <dirname>\NUL <command> and IF EXIST EMMXXXX0 <command>
  120. ────────────────────────────────────────────────────────────────
  121. This is a handy quirk of DOS. Installable drivers are seen as files in all
  122. directories. You can use the if exist test to either test for the existence
  123. of a directory, with "if exist <dirname>\nul", which fails if the directory
  124. does not exist because the nul device is not found; or to test whether any
  125. driver is loaded, such as the DOS 5 or 6 EMM386 memory manager.
  126.  
  127. Caveats:  For testing NUL, you need to know the name of the directory or the
  128. driver whose existence you are testing, and this is MS-DOS specific -- it
  129. doesn't work on network drives, and may not work under DR-DOS.
  130.  
  131. Where did you learn the "EMMXXXX0" name from?  Instead of typing MEM /C, type
  132. MEM /D for the "debug" listing.
  133.  
  134. The only trouble is EXISTS returns true for COM3/4 and LPT2/3 even if the
  135. hardware does not exist.
  136.  
  137. ─────────────────────────────────────────────────────────────────────────────
  138.  
  139. INSTALLHIGH
  140. ───────────
  141.  
  142. In DOS 6.0, there is an undocumented CONFIG.SYS command called INSTALLHIGH=
  143. which works just like INSTALL= but loads the TSR high (into upper memory).
  144.  
  145. The only drawback to this is that MemMaker will not touch INSTALLHIGH lines
  146. during the optimizing process. It just takes it as it is currently. But then
  147. again, INSTALL= is ignored too. All in all, INSTALL and INSTALLHIGH really
  148. are commands to set up manually by the user, and are not really recommended
  149. for normal use. Load TSRs at the beginning of AUTOEXEC.BAT (and using
  150. LOADHIGH if desired).
  151.  
  152.        Example:
  153.  
  154.        DOS=HIGH,UMB
  155.        DEVICE=C:\DOS\HIMEM.SYS
  156.        DEVICE=C:\DOS\EMM386.EXE NOEMS
  157.        INSTALLHIGH=C:\DOS\SHARE.EXE
  158.  
  159. ─────────────────────────────────────────────────────────────────────────────
  160.  
  161. SWITCHES=/W
  162. ───────────
  163.  
  164. Enables you to have the Windows 3.0 WINA20.386 file anywhere on your boot
  165. drive. Without this you have to have it in the root directory.
  166.  
  167. This should not be used with Windows 3.1, since it appears to waste around
  168. 120 to 130K of UMBs, depending on your system configuration.
  169.  
  170. ─────────────────────────────────────────────────────────────────────────────
  171.  
  172. TRUENAME
  173. ────────
  174.  
  175. Internal DOS 5.0 command. Canonicalize a filename or path (using DOS
  176. interrupt 21h, function 60) prints the actual directory.
  177.  
  178.      Syntax:
  179.  
  180.      TRUENAME filename   - Prints the complete path to file.
  181.      TRUENAME directory  - Prints the complete path to directory.
  182.  
  183. Note:  If the path is in a network, it starts with a \\machine-name.
  184.  
  185. TRUENAME is analogous to the UNIX "whence" command. It returns the real
  186. fully-qualified path name for a command.
  187.  
  188. TRUENAME is useful in networks, where a physical drive may be mapped to a
  189. logical volume, and the user needs to know the physical location of the file. 
  190. It ignores the DOS SUBST and JOIN commands, or network MAPped drives.
  191.  
  192. TRUENAME is an undocumented MS-DOS feature, but it is documented in JP
  193. Software's 4DOS software (COMMAND.COM replacement) as follows:
  194.      Syntax:
  195.  
  196.      TRUENAME [d:][path]filename
  197.  
  198.      Purpose:
  199.  
  200.      Returns a fully qualified filename.
  201.  
  202.      Comments:
  203.  
  204.      TRUENAME will see "through" JOIN and SUBST commands, and
  205.      requires MS-DOS 3.0 or above.
  206.  
  207.      Example:
  208.  
  209.      The following command uses TRUENAME to get the true pathname
  210.      for a file:
  211.  
  212.      c:\>subst d: c:\util\test
  213.      c:\>truename d:\test.exe
  214.  
  215.      c:\util\test\test.exe
  216.  
  217. TRUENAME : will reveal the full name drive and path of the filename. If you
  218. specify a wildcard (*) in the filename, it will expand the filename to use
  219. question marks instead. If the path includes the ..\ sequence, TRUENAME will
  220. examine the directory structure and calculate the path.
  221.  
  222. Stranger still, the line:
  223.  
  224.      TRUENAME \CRONK\FLIBBET\..\ART
  225.  
  226. produces the response:
  227.  
  228.      C:\CRONK\ART
  229. even if the directories \CRONK\FLIBBET and the file ART don't exist! Don't
  230. expect this command to work well across networks. After all, this is still
  231. undocumented in MS-DOS for a reason!
  232.  
  233. ─────────────────────────────────────────────────────────────────────────────
  234.  
  235. VER /R
  236. ──────
  237.  
  238. Yields extended information about the DOS version:
  239.  
  240.      MS-DOS Version 5.00
  241.      Revision A
  242.      DOS is in HMA
  243.  
  244. Doesn't work with DOS 3.30. VER /R is a documented feature of JP Software's
  245. 4DOS.
  246.  
  247. ─────────────────────────────────────────────────────────────────────────────
  248.  
  249. Using : for batch file comments
  250. ───────────────────────────────
  251.  
  252. DOS uses a leading : to indicate a label in a batch file. If the next
  253. character following the : is a space or other non-alphanumeric character, then
  254. DOS will decide it's an invalid label and skip to the next line, performing no
  255. further action. Faster batch file processing is achieved using this method
  256. for comments instead of REM commands.
  257.  
  258. ─────────────────────────────────────────────────────────────────────────────
  259.  
  260. REM in lines with pipes or redirection
  261. ──────────────────────────────────────
  262.  
  263. For example:  REM echo y | del *.*
  264.  
  265. Problems are encountered when trying to REM out an "echo y | del *.*" line in
  266. a batch file. The problem appears to only occur if there is a pipe or
  267. redirection in the REMed out line, which shows that DOS first reads the entire
  268. line and processes pipes and redirections first, and then goes back to find
  269. out what to do with them in the line. It's actually doing what it thinks
  270. you've told it:  Piping the output of REM to DEL. Since REM has no output,
  271. DEL hangs, waiting for the answer to its question.
  272.  
  273. ─────────────────────────────────────────────────────────────────────────────
  274.  
  275. Delimiter character
  276. ───────────────────
  277.  
  278. Prior to DOS 5.0, there was an undocumented DOS function that would allow you
  279. to set the DOS option delimiter character to something else, like a dash (-). 
  280. Once you did this, you could use either \ or / in PATH specifications.
  281.  
  282. DOS 5.0 removed the function to set the option delimiter, but retained the
  283. function to query what it currently is.
  284.  
  285. (Unfortunately, no further details were provided in this file, so not sure if
  286. the delimiter character can still be changed somehow.)
  287.  
  288. ─────────────────────────────────────────────────────────────────────────────
  289.  
  290. Once again, there's probably a few commands I've missed. If you've got any
  291. to add, please pass them on to me, and I'll reprint the additions in an
  292. future issue of WWIVNews!
  293.  
  294. ───────────────┬─────────────────────────────────────────────┬───────────────
  295.                │    Tips For Running WWIV Under OS/2 2.1     │
  296.                │             By Martin (1@6251)              │
  297.                │                     And                     │
  298.                │            Lord Sigma2 (1@5498)             │
  299.                └─────────────────────────────────────────────┘
  300.  
  301. [Editor's note: In response to repeated requests by sysops in configuring
  302. OS/2 2.1 to properly run WWIV, both Martin and Lord Sigma2 contributed to
  303. several discussions regarding this topic. The end result is this article, 
  304. which is a compilation of the tips revealed in those discussions, and also
  305. includes the contents of an article on the topic that appeared in _IceNEWS_,
  306. our sister publication on IceNET.]
  307.  
  308. ─────────────────────────────────────────────────────────────────────────────
  309.  
  310. MARTIN: FIRST THINGS FIRST
  311. ──────────────────────────
  312.  
  313. Getting WWIV 4.23 was something that I, like everyone else it seems, had been
  314. looking forward to for a long time. I was lucky enough to have been able to
  315. get it from Amber the night it was released so I was able to take a look at it
  316. right away. I had planned to wait to install 4.23 on my BBS for at least a
  317. week so I'd have time to really look it over but when I saw what it had to
  318. offer I decided not to wait.
  319.  
  320. I had been running OS/2 on my second computer for almost 4 months. When I
  321. first installed it I realized that I was faced with almost the same magnitude
  322. of confusion as I had worked through each time I had bought a new, unfamiliar,
  323. computer system. I say this only to say that when I set up WWIV 4.23 under
  324. OS/2 I was far from being an expert (and still am not) on the operating system.
  325. I was a beginner as far as the use and understanding of OS/2 was concerned, and
  326. I was also using a new version of the BBS software. I had a lot of confusion
  327. to overcome!
  328.  
  329. Regardless, to the best of my memory, and for whatever help this is worth, 
  330. here is the breath-taking saga of Amiga Blues' encounter with running multi-
  331. instance under OS/2.
  332.  
  333.  
  334. HPFS or FAT?
  335. ────────────
  336.  
  337. I had set up OS/2 on my "personal" (as opposed to the BBS) computer with the
  338. HPFS and dual boot. I didn't realize at that time that a person could switch
  339. back and forth booting either OS/2 or DOS without installing the dual boot
  340. feature under the HPFS. It is possible, though, to install OS/2 on an existing
  341. partition by installing it in a subdirectory using the FAT system. You can
  342. still reboot into DOS by using the "boot /dos" command, and back to OS/2 by
  343. typing "c:\os2\boot /os2" (assuming you have used the default directories).
  344. When it came time to install OS/2 on my BBS computer I decided to use the FAT
  345. system and give it a try. I didn't want to have to repartition my hard drive
  346. to use HPFS. You will have to weigh the advantages and disadvantages of the
  347. FAT vs the HPFS and decide which way seems best for you.
  348.  
  349. Once I had installed the operating system, I booted it up, made an icon (see
  350. below) for instance number one and ran it. It worked!
  351.  
  352. Well, it worked to the extent that the board came up and ran. There was still
  353. a lot of work to do before I was ready to actually open the board back up to
  354. callers while running under OS/2.
  355.  
  356.  
  357. ICONS AND .BAT FILES
  358. ────────────────────
  359.  
  360. In order to get icons for my "instances" of WWIV, I had to go into the System
  361. Setup folder and select "Migrate Applications". Your OS/2 manual will explain
  362. the process involved with doing this. After running Migrate Applications, you
  363. will need to select the "Add Programs" option and "Add" your BBS.COM to the
  364. Selected Programs list. You will do this so that you'll have an icon, but you
  365. will only do this as a first step; you won't actually run the board off it.
  366. You should make a copy of this icon for each instance you will want to run so
  367. that you have one icon for each instance.
  368.  
  369.  
  370. ICON SETTINGS
  371. ─────────────
  372.  
  373. Once you have created your icons, go into the Settings for each one and under
  374. "Path and file name:" have them call a .BAT file for each instance rather than
  375. calling BBS.COM. Under "Path and file name:" you will want C:\WWIV\WWIV1.BAT,
  376. C:\WWIV\WWIV2.BAT, and so on rather than C:\WWIV\BBS.COM. This will allow you
  377. to set the instance correctly. See my example .BAT files (following) if you
  378. don't know what I mean by this.
  379.  
  380. One of the other very important things to do is replace the standard COM
  381. drivers that come with OS/2 with Ray Gwinn's SIO drivers. I won't go into the
  382. way to do this; it's well covered in the documentation files that come with the
  383. drivers. But one thing that's not immediately clear is that you should go into
  384. the BBS's icons and make some changes under the new options the SIO drivers
  385. give you. For one thing, you'll need to disable access to every COM port but
  386. the one used by that instance. For example, let's assume you're running your
  387. setup as follows:
  388.  
  389. 2 remote and one local instance (3 icons total).
  390. Instance 1 (WWIV1.BAT) uses COM2
  391. Instance 2 (WWIV2.BAT) uses COM3
  392. Instance 3 (WWIV3.BAT) is local.
  393.  
  394. You would want to go into your BBS icons and change your DOS settings so that
  395. the icon for instance 1 (WWIV1.BAT) has access to COM2 only, the icon for
  396. instance 2 (WWIV2.BAT) has access to COM3 only, and the icon for instance 3
  397. (WWIV3.BAT) does not access any of the COM ports. Once you've installed the
  398. SIO drivers, you'll see that the icons will allow for the new options the SIO
  399. drivers provide. Restricting each instance's access to only the COM port it
  400. needs will prevent problems such as online programs causing a System Error
  401. message telling you that your application tried to access a communications port
  402. which is in use by another application.
  403.  
  404. I don't have any experience with running WWIV under OS/2's drivers and I would
  405. highly recommend getting Mr. Gwinn's drivers. I ran the OS/2 drivers for a
  406. while under Procomm Plus, and the difference between the SIO drivers and the
  407. standard OS/2 drivers was amazing. I went from approximately 600 CPS and many
  408. crashes during transfers to 1600-1700 CPS and no more crashes.
  409.  
  410. Anyway, back to the issue of setting up your icons... You will also want to
  411. set the IDLE_SECONDS and IDLE_SENSITIVITY to provide the best performance on
  412. your particular system. As I've said, I'm no OS/2 expert, but I do believe
  413. that these settings will work differently from one system to another. Your
  414. settings will probably be different from mine. What I did to get them tweaked
  415. the best I could was to set the IDLE_SECONDS just high enough so I didn't get
  416. the famous "pause after message header" problem, and set the IDLE_SENSITIVITY
  417. so that the processing time would be divided up between instances as evenly as
  418. possible.
  419.  
  420. What I believe causes the problem with messages pausing right after the header
  421. is displayed is OS/2 mistakenly thinking that the session is inactive and
  422. pausing it until it thinks it's active again. Apparently this is a problem
  423. with OS/2 and communication software. The software (in this case your BBS) is
  424. processing data but there is no mouse movement or keyboard action while you are
  425. reading the message. OS/2 doesn't think anything is happening and idles the
  426. session until you do something. On my system I experienced the problem with
  427. the session pausing after the message header until I set the IDLE_SECONDS up to
  428. 4. Setting the IDLE_SECONDS to 4 took care of the problem.
  429.  
  430. In order to get IDLE_SENSITIVITY set so that it seems to work the best, I tried
  431. setting it as low as possible, and then ran the session. I checked the setting
  432. by doing a new message scan and watching to see if the text was "jerky". If it
  433. was jerky at the IDLE_SENSITIVITY I had, I exited the BBS, quit the session,
  434. opened the icon's DOS settings and bumped the setting up by 10 at a time until
  435. the text displayed smoothly. I then adjusted it by an increment of 5. What I
  436. mean is this:
  437.  
  438. With IDLE_SENSITIVITY set at 30 if the text scrolled jerkily, I went out and
  439. set the sensitivity to 40. If it was still jerky I set it to 50. If it was
  440. then okay, I set it to 45. If it was okay, I left it alone, and if it was
  441. jerky again I set it back to 50.
  442.  
  443. I have left INT_DURING_IO off. I have heard that having it on can mess up
  444. network packet handling, and I don't want to risk that.
  445. Another thing I did was to aim the DOS_DEVICE to C:\OS2\MDOS\ANSI.SYS so that
  446. my system would be able to handle ANSI displays.
  447.  
  448. One last thing that I have just tried is setting the HW_TIMER to on. This is
  449. due to a recommendation in "Your OS/2 Consultant" written by Herb Tyson and
  450. published by Sams Publishing. Having the HW_TIMER on allows WWIV to have
  451. direct access to the timer ports and stops OS/2 from emulating a timer.
  452. Apparently, it's been documented that some fax programs and high speed data
  453. transfer utilities don't run well unless HW_TIMER is set to on.
  454.  
  455.  
  456. .BAT FILES
  457. ──────────
  458.  
  459. The .BAT files are fairly simple. Here are mine:
  460.  
  461. (WWIV1.BAT)
  462.  
  463. set WWIV_INSTANCE=1
  464. c:
  465. cd \wwiv
  466. bbs.com /i1
  467.  
  468. (WWIV2.BAT)
  469.  
  470. set WWIV_INSTANCE=2
  471. c:
  472. cd \wwiv
  473. bbs.com /i2
  474.  
  475. (WWIV3.BAT)
  476.  
  477. set WWIV_INSTANCE=3
  478. c:
  479. cd \wwiv
  480. bbs.com /m /i3
  481.  
  482. You can see that I've got instance 3 set up for local only use and have used
  483. the /m parameter to disable the BBS from trying to find a modem.
  484.  
  485.  
  486. CD-ROM DRIVES
  487. ─────────────
  488.  
  489. I had a little difficulty setting up my CD-ROM drives to work under OS/2 in the
  490. same way they had been working under DOS. The problem was not the fault of
  491. OS/2; it runs CD-ROM drives just as well as it runs anything else. It was just
  492. a matter of finding drivers that worked with my drives (I have Mitsumis). If
  493. you have a Mitsumi CD-ROM drive and haven't been able to find a driver for it,
  494. you can call the OS/2 BBS at 919-517-0001 and get the driver there. The file
  495. name is MITFIX.ZIP and the driver name is MITFIX001.ADD. This driver supports
  496. the new FX series of Mitsumi drives as well as the CRMC-FX001, the CRMC-FX001D
  497. and the older CRMC-LU005 drives. Once I found and installed the drivers (see
  498. your OS/2 manual for more information on this; it's covered very well), I set
  499. up a small RAM drive so that the CD-ROM drive letters would be the same as they
  500. had been under DOS. I did this because I had used a RAM drive under DOS. This
  501.