home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / mswindo / announce / 109 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  45.7 KB

  1. Path: sparky!uunet!ukma!gatech!swrinde!zaphod.mps.ohio-state.edu!pitt.edu!infidel
  2. From: tomh@wes.on.ca (Tom Haapanen)
  3. Newsgroups: comp.os.ms-windows.announce
  4. Subject: Windows FAQ: ASCII format, 03/06
  5. Message-ID: <1993Jan28.030418.112.comp.os.ms-windows.FAQ.3@pitt.edu>
  6. Date: 27 Jan 93 16:59:56 GMT
  7. Sender: infidel+@pitt.edu
  8. Followup-To: comp.os.ms-windows.misc
  9. Organization: Waterloo Engineering Software
  10. Lines: 1014
  11. Approved: infidel+@pitt.edu
  12.  
  13. The following is part 03 of 06 of the ASCII text version of the
  14. Microsoft Windows FAQ (Frequently Asked Questions).  While some of you
  15. may find this the best format, the more popular format is the WinHelp
  16. file.  These are posted simultaneously with the ASCII version to
  17. comp.binaries.ms-windows.
  18.  
  19. You can obtain a copy of the WinHelp version as "faqwin01.zip" by ftp
  20. from sonygate.sony.com [192.63.138.2], in /pub/comp.binaries.ms-windows.
  21. It will also be placed on ftp.cica.indiana.edu once disk space permits.
  22.  
  23.  
  24.  
  25. BEGIN--------------cut here--------cut here------------cut here----------
  26.     
  27.   DOS application performace is also degraded by using a .PIF file (such as
  28.   the default .PIF) with the Monitor Ports option enabled, but to a much
  29.   smaller degree.  With Monitor Ports disabled, DOS session performance
  30.   should be within 5-10% of the performance under bare DOS.
  31.   
  32. ...........................................................................
  33.  
  34. 4.13.8.  Problems creating a permanent swapfile in Windows 3.0
  35. --------------------------------------------------------------
  36.   First of all, you must be running in real mode to be able to create a
  37.   permanent swapfile.   Second, You must not have any SUBSTed drives or
  38.   Windows won't create the swapfile.  Once the swapfile has been created, you
  39.   can re-SUBST your drives (although the use of SUBST is not recommended in
  40.   general).  You also can't create a permanent swapfile on a drive
  41.   partitioned with third-party software such as SpeedStor.
  42.   
  43.   If you are installing on a Novell client, you must first disable the
  44.   receive network messages feature (using the network icon in the Control
  45.   Panel) and reboot.  Once you have installed the swapfile, turn messages
  46.   back on again.
  47.   
  48. ...........................................................................
  49.  
  50. 4.13.9.  Program Manager claims only 8 KB of free memory
  51. --------------------------------------------------------
  52.   In Windows 3.1, it is possible that Program Manager (and other Windows 3.1
  53.   programs) will claim that you have only 8 KB memory when you really have 8
  54.   MB (that is, it chops off the kilobytes part and displays only megabytes --
  55.   but with "KB" after the figure).
  56.   
  57.   This is caused by a null thousands separator in Control Panel's
  58.   International settings.  Set the
  59.   separator to either blank or some character to restore correct behaviour.
  60.   
  61. ...........................................................................
  62.  
  63. 4.13.10.  Using a slow expansion memory board with Windows
  64. ----------------------------------------------------------
  65.   If some of your memory is on a slower memory expansion board (such as a
  66.   standard ISA bus memory board, operating at 8 MHz in a 33 MHz system, you
  67.   may experience serious performance deterioration as soon as Windows starts
  68.   using the slower memory on the expansion board.  (For example, see section
  69.   Performance deterioration in a 386 Enhanced mode DOS session.)
  70.   
  71.   Unfortunately Windows 3.1 does not allow you to specify memory ranges to be
  72.   used for a RAMdisk or disk cache, and thus you can't control which memory
  73.   gets used first.  In this case, the best solution is to use QEMM-386, which
  74.   allows you to do just that.  Place your RAMdisk and disk cache in the slow
  75.   memory (they will not suffer a significant performance drop), and leave the
  76.   fast memory on the motherboard available for Windows' use.
  77.   
  78. ...........................................................................
  79.  
  80. 4.13.11.  Windows 3.0 refuses to run without a file called WINA20.386
  81. ---------------------------------------------------------------------
  82.   Quoting from the MS-DOS 5.0 readme.txt file:
  83.   
  84.   4.3 WINA20.386 File
  85.   
  86.   Setup installs a read-only file named WINA20.386 in your root directory.
  87.   If you move the WINA20.386 file to a different directory, do the following:
  88.        * Add a SWITCHES=/W command to your CONFIG.SYS file.
  89.        * Add a DEVICE=[drive:][path]]WINA20.386 command to the [386Enh]
  90.           section of your Windows system.ini file.
  91.   
  92.   Windows 3.1 does not require this file to be present.
  93.   
  94. ...........................................................................
  95.  
  96. 4.13.12.  Windows 3.1 hangs or crashes during startup
  97. -----------------------------------------------------
  98.   Try starting Windows with the command line
  99.        win /b
  100.   
  101.   If it repeats the same crash or hang, take a look at the file bootlog.txt
  102.   in your Windows directory.  It will have two lines such as
  103.        LoadStart = SYSTEM.DRV
  104.   and
  105.        LoadSuccess = SYSTEM.DRV
  106.   for every driver succesfully loaded; the culprit driver will show a line
  107.   such as
  108.        LoadFail = WIN3-64S.DRV Failure code is 05
  109.   
  110.   If it's a standard Windows driver, try reloading it from diskettes;
  111.   otherwise, for a third-party driver, try to locate an updated driver either
  112.   from cica, your supplier or direct from the manufacturer.
  113.   
  114. ...........................................................................
  115.  
  116. 4.13.13.  Windows 3.1 hangs or waits a long time on exit
  117. --------------------------------------------------------
  118.   Windows 3.1 tries to reset the mouse driver on exit, and some IBM PS/2
  119.   models have great difficulty with this procedure, timing out only after an
  120.   extended wait.  In order to avoid the problem, add the line
  121.   
  122.        InitPS2MouseAtExit=False
  123.   
  124.   to the [386Enh] section of your system.ini file.
  125.   
  126. ...........................................................................
  127.  
  128. 4.13.14.  Windows 3.1 Resource Kit won't install
  129. ------------------------------------------------
  130.   The most common WRK installation problem is an excessively long path.  If
  131.   you have problems, try reducing the length of your path for the
  132.   installation, and you should be OK.
  133.   
  134. ...........................................................................
  135.  
  136. 4.13.15.  Windows 3.x waits a long time on startup
  137. --------------------------------------------------
  138.   One possible reason is the use of a serial mouse on COM2 instead of COM1.
  139.   If you have a serial mouse, Windows will first attempt to find it (with
  140.   great persistence) on COM1, before it looks on COM2.  If your mouse is on
  141.   COM2, move it to COM1.
  142.   
  143.   Using a temporary swapfile instead of a permanent one for 386 enhanced mode
  144.   also slows down the startup process, but not to even nearly the same extent
  145.   as the serial mouse problem.
  146.   
  147.   With Windows 3.0, it has also been reported that adding too many fonts
  148.   through the Control Panel will drastically slow down the startup, and with
  149.   both Windows 3.0 and 3.1, a very large number of ATM fonts will also slow
  150.   down the startup process.
  151.   
  152. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  153.  
  154.  
  155. 5.  WINDOWS AND DOS
  156. ===================
  157.   
  158. ---------------------------------------------------------------------------
  159.  
  160. 5.1.  Configuring DOS sessions
  161. ==============================
  162.   
  163. ...........................................................................
  164.  
  165. 5.1.1.  DOS in a window
  166. -----------------------
  167.   You can run a both the standard DOS command interpreter (command.com) and
  168.   other DOS applications from within Windows.  In Real mode, you are limited
  169.   to a single session.  In Standard mode, you can have multiple sessions, but
  170.   they must still run full-screen.  In 386 Enhanced mode, you can have
  171.   multiple sessions, and they can run in a window.
  172.   
  173.   You can control the starting up in a window vs. full-screen by setting up a
  174.   .pif file for the program (command.com  or any other DOS program).  You can
  175.   also switch the state by pressing Alt-Enter.
  176.   
  177. ...........................................................................
  178.  
  179. 5.1.2.  Lotus 1-2-3 in Windows
  180. ------------------------------
  181.   Lotus 1-2-3, versions 1.x, 2.x and 3.1 run in all modes, but do not support
  182.   any of the features of the Windows environment.  For all intents and
  183.   purposes, version 3.0 doesn't run under Windows.
  184.   
  185.   If you want to use a spreadsheet in the Windows environment, however, you
  186.   will be best off buying a real Windows spreadsheet such as Excel, WingZ, CA-
  187.   Compete! or 1-2-3 for Windows.
  188.   
  189. ...........................................................................
  190.  
  191. 5.1.3.  Reducing the amount of "jerkiness" in DOS window updating
  192. -----------------------------------------------------------------
  193.   Windows 3.1 updates the DOS windows by default every 50 ms.  To increase
  194.   the update frequency, specify another update interval (such as 20 ms) by
  195.   adding a line to the [386Enh] section of system.ini:
  196.        WindowUpdateTime=20
  197.   A smaller interval will provide smoother updates but impose a higher load
  198.   on the system.
  199.   
  200. ...........................................................................
  201.  
  202. 5.1.4.  Extended memory in DOS sessions
  203. ---------------------------------------
  204.   After you run Windows, a utility such as Norton SI will often report that
  205.   you don't have any extended memory.  This is not a bug, but rather a result
  206.   of the Windows memory management system..  Windows requires applications to
  207.   access extended memory using one of two mechanisms, known as "XMS" and
  208.   "DPMI".  These mechanism are implemented in himem.sys and emm386.exe.  If
  209.   you have device=himem.sys in your config.sys, the first XMS call (by
  210.   Windows or SmartDrive, for example) will transfer control of the extended
  211.   memory to himem.sys, and thus make it inaccessible to non-XMS/non-DPMI
  212.   applications.
  213.   
  214. ...........................................................................
  215.  
  216. 5.1.5.  Changing the font size for a DOS window
  217. -----------------------------------------------
  218.   All video drivers updated for Windows 3.1 allow on-the-fly font changes; to
  219.   get the same functionality using older 3.0 drivers (in Windows 3.1), add
  220.   the line
  221.        FontChangeEnable=1
  222.   to the [NonWindowsApp] section of the system.ini file.  If you experience
  223.   strange cursor behaviour or missing characters, remove the line from
  224.   system.ini.
  225.   
  226.   There are also alternate Windows 3.0 DOS fonts available at
  227.   ftp.cica.indiana.edu.
  228.   
  229. ...........................................................................
  230.  
  231. 5.1.6.  Changing the number of lines inr a DOS window
  232. -----------------------------------------------------
  233.   To use more than 25 lines in a DOS window, add the line
  234.        ScreenLines=50
  235.   to the [NonWindowsApp] section of the system.ini file.
  236.   
  237.   If your screen doesn't quite fit 50 lines in a DOS window with a decent
  238.   font, you may want to follow this procedure:
  239.        * Use a VGA font editor (such as VFONT) to create a DOS VGA screen
  240.           font with more than 25 lines.
  241.        * Start up a DOS session (in a window)
  242.        * In that window, change the font (and thus screen size) to your new
  243.           font/size.  Voila!
  244.   
  245. ...........................................................................
  246.  
  247. 5.1.7.  Mouse in a DOS window
  248. -----------------------------
  249.   In Windows 3.0, if you are running a DOS application in a window, Windows
  250.   will retain control of the mouse for cutting and pasting.  You can use a
  251.   mouse in a full-screen DOS session if you install a mouse driver by running
  252.   mouse.com (either before starting Windows, or inside the DOS session), or
  253.   by including
  254.        device=mouse.sys
  255.    in your config.sys file. If you're running WordPerfect 5.1 inside Windows,
  256.   WordPerfect must be started full-screen in order to detect the mouse.  Once
  257.   it has started, you can use Alt-Enter to run in a window, if you wish.
  258.   
  259.   In Windows 3.1, the mouse will automatically work in a DOS window if you
  260.   have a video driver which has been updated for 3.1.  Old 3.0 drivers do
  261.   work, but they do not by default provide mouse functionality inside DOS
  262.   windows, although you can force them to do so by adding the line
  263.        MouseinDosBox=1
  264.   to the [NonWindowsApp] section of the system.ini file.
  265.   
  266.   If you have a Microsoft mouse, you should use the mouse driver version
  267.   8.20, included on the Windows 3.1 disks, named mouse.co_ and mouse.sy_.
  268.   Expand these files using expand.exe (also included on the disks) before
  269.   using them.
  270.   
  271. ...........................................................................
  272.  
  273. 5.1.8.  TSRs in DOS sessions
  274. ----------------------------
  275.   Some TSR (Terminate and Stay Resident) programs will not work if you
  276.   install them before running Windows.  Some of them will not work if you
  277.   install them inside a DOS session.  Generally the best idea is to avoid
  278.   TSRs completely unless you absolutely have to have them.
  279.   
  280.   See also the description of winstart.bat in the Windows *.txt files.
  281.   
  282. ...........................................................................
  283.  
  284. 5.1.9.  VGA graphics in a windowed DOS session
  285. ----------------------------------------------
  286.   Windows 3.1 will support VGA graphics in a windows DOS session if you have
  287.   the correct display driver.  True Windows 3.1 display drivers (such as the
  288.   standard SuperVGA driver) will do this, but some partial implementations
  289.   may not.
  290.   
  291. ---------------------------------------------------------------------------
  292.  
  293. 5.2.  Troubleshooting DOS applications
  294. ======================================
  295.   
  296. ...........................................................................
  297.  
  298. 5.2.1.  Out of Environment Space
  299. --------------------------------
  300.   When Windows starts up a DOS session, it by default gives it an environment
  301.   of 224 bytes, or the space required to hold your current environment,
  302.   whichever is larger.  If you need more space, there are two methods of
  303.   circumventing this.  In order of desirability:
  304.   
  305. *  Use a .pif file for each DOS application you run.
  306.   In this you can specify the environment size by using the /e:nnn option
  307.   (see your DOS manual).  You will need a separate .pif file for each program
  308.   (although in Windows 3.1 you can create a _default.pif, which is used by
  309.   all DOS applications which do not have their own .pif files).  You can just
  310.   create a command.pif with a suitable /e:nnn, and then specify in the
  311.   win.ini a line such as
  312.   
  313.        [Extensions]
  314.        bat=command.pif ^.bat        // for DOS users
  315.        ksh=sh.exe ^.ksh             // for MKS users
  316.   
  317.   With this, you can create batch file icons freely, and still get the
  318.   options specified in command.pif or sh.pif.
  319.   
  320. * Use a dummy variable
  321.   By specifying a dummy variable (such as DUMMY1=xxxxx...)  before starting
  322.   Windows, you can reserve some space in the environment.  Then, as the first
  323.   thing in each command.com session, do
  324.        set DUMMY1=
  325.   to reclaim the space used by DUMMY1 for use by other environment variables.
  326.   
  327. ...........................................................................
  328.  
  329. 5.2.2.  Protected-mode software
  330. -------------------------------
  331.   Many protected-mode applications currently on the market use an extended-
  332.   memory interface called VCPI (Virtual Control Program Interface), which is
  333.   incompatible with Windows' DPMI (DOS Protected Mode Interface).  Microsoft
  334.   went against an established standard in choosing DPMI, but there are valid
  335.   technical reasons why VCPI was not chosen for Windows.
  336.   
  337.   At this point, you have three choices:
  338. * Run your protected-mode software under DOS
  339.   This means that you must NOT use Windows or SmartDrive before running your
  340.   VCPI software, and may require you to have two different config.sys files.
  341.   
  342. * Plead with your software developer
  343.   Call up the software vendor and ask them whether they are developing either
  344.   a Windows-based version, or, at the minimum, one which uses DPMI instead of
  345.   VCPI.  They should already be working on it anyway, given the momentum that
  346.   Windows 3.x has.
  347.      
  348. * Buy QEMM/386 or 386Max
  349.   Both of these packages provide VCPI.  You'll be able to run your protected-
  350.   mode software as well as Windows 3.0 and 3.1.
  351.   
  352. ...........................................................................
  353.  
  354. 5.2.3.  Corrupted diskettes when copying files in a DOS session
  355. ---------------------------------------------------------------
  356.   If you are getting corrupted diskettes with a 0xff as every other byte when
  357.   copying files to a floppy within a DOS session, the most likely cause is an
  358.   expansion board using the same memory area also used by Windows for EMM.
  359.   You should check that you EMMExclude all areas used by your cards.
  360.   
  361.   The Video-7 1024 SVGA board needs a more radical measure: you need to
  362.   change a jumper to do all ROM decoding in cooo - c7ff, and change a DIP
  363.   switch to force 8-bit ROM access.
  364.   
  365. ---------------------------------------------------------------------------
  366.  
  367. 5.3.  DOS shells and extenders
  368. ==============================
  369.   
  370. ...........................................................................
  371.  
  372. 5.3.1.  QEMM/386 and DesqView/386
  373. ---------------------------------
  374.   You can use versions 5.0 of QEMM/386 and below with real-mode Windows 3.0
  375.   only.  However, QEMM/386, versions 5.1 and higher, provides XMS services
  376.   for Windows, thus allowing Windows to run in all modes under QEMM/386, plus
  377.   providing compatability with VCPI applications.
  378.   
  379.   Windows will run in Standard (Windows 3.0 and 3.1) and Real (3.0 only)
  380.   modes as a DesqView/386 task.
  381.   
  382. ...........................................................................
  383.  
  384. 5.3.2.  MKS Toolkit: setting up
  385. -------------------------------
  386.   There are two possible problems with running Windows from the MKS Toolkit.
  387.   First, with versions up to and including 3.1c of the Toolkit, the use of
  388.   login.exe precludes the use of Windows 3.0 in any but the real mode.  To
  389.   avoid this, have your machine boot directly into the Korn shell or
  390.   command.com (you may use init.exe if you wish).
  391.   
  392.   Second, somebody at Microsoft had a brain fade, and Windows gets confused
  393.   if it is started with a forward slash path.  Thus, if you simply type "win"
  394.   in Korn shell, the shell invokes Windows with something like
  395.   
  396.        c:/usr/windows/win.com
  397.   
  398.   and Windows doesn't know where to find itself!  To cure this, specify a
  399.   shell alias for Windows: I use
  400.   
  401.        alias -x win='c:\\usr\\windows\\win.com'
  402.   
  403.   Note that the double backslashes are necessary for the Korn shell, even
  404.   inside the single quotes.
  405.   
  406.   The newer versions of MKS Toolkit allow (standard and 386 enhanced mode)
  407.   Windows to run directly from the login: prompt; but they still won't let
  408.   you run standard/386 enhanced Windows from the shell (if you used login).
  409.   An updated version of init.exe is available from MKS for users of older
  410.   versions of the MKS Toolkit.
  411.   
  412. ...........................................................................
  413.  
  414. 5.3.3.  MKS Toolkit: maximizing DOS session memory
  415. --------------------------------------------------
  416.   If you run MKS Toolkit by starting up init.exe from config.sys, and then
  417.   starting the shell from /etc/inittab, you will likely find that there isn't
  418.   much memory available in the DOS (shell) sessions you start from inside
  419.   Windows.
  420.   
  421.   One way to address this is to start up Windows immediately upon booting,
  422.   avoiding loading the shell into the valuable DOS low memory.  There are at
  423.   least two ways of doing this cleanly:
  424.   
  425.       As the last line in your profile.ksh, add the command
  426.        exec c:\\windows\\win.com
  427.      (or whatever the path is to your Windows directory).  Using the exec
  428.      command retains the environment you have set up in your profile.ksh and
  429.      environ.ksh files, but overlays the shell memory with Windows, avoiding
  430.      memory loss.
  431.      
  432.      Since the startup script executes Windows at the end, make sure that you
  433.      so not run sh -L from Windows, as this would attempt to restart Windows.
  434.   
  435.       Given that command.com  uses much less memory than the shell, you can
  436.      specify (as the last line in /etc/inittab, instead of starting up the
  437.      shell) the following:
  438.        ms;35;respawn;c:/dos/command.com /c c:\etc\init.bat
  439.      
  440.      Then, in /etc/init.bat, specify all your essential environment variables,
  441.      and as the last line start up Windows.  This method wastest a few
  442.      kilobytes of low memory compared to hte first one, but allows you run sh
  443.      -L without risk.
  444.   
  445.   
  446. ...........................................................................
  447.  
  448. 5.3.4.  MS-SH
  449. -------------
  450.   The basic problem is the MS-SH swap setting.  In Real mode, you will need
  451.   to use swap disk.  In Standard mode, you can also use swap extend, but you
  452.   will have to specify at least 200K of XMS memory in the MS-SH .pif file.
  453.   Alternatively, if you are using Standard or 386 Enhanced mode, you can use
  454.   swap ems, but again you will need to specify at least 200K of EMS memory in
  455.   your .pif file.  A bug in the current (as of this writing) version of MS-SH
  456.   prevents swap extend from working in 386 enhanced mode; MS-SH will always
  457.   crash with a panic error.
  458.   
  459.   With Windows 3.1, swap xms works as intended, and is the appropriate
  460.   setting.
  461.   
  462. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  463.  
  464.  
  465. 6.  WINDOWS TIPS, TRICKS AND SECRETS
  466. ====================================
  467.   
  468. ---------------------------------------------------------------------------
  469.  
  470. 6.1.  General
  471. =============
  472.   
  473. ...........................................................................
  474.  
  475. 6.1.1.  Automatically opening applications on startup, with predefined window
  476. positions
  477. ------------------------------------------------------------------------------
  478. ---------
  479.   You can load applications automatically in two ways:
  480.        
  481.        * By adding them to the Startup group in Windows 3.1 Program Manager.
  482.           To run start them as icons, check the Run iconized checkbox in the
  483.           File / Properties dialog for the program.
  484.        
  485.        * By specifying them on the load= or run= line in win.ini.  This will
  486.           load the specified applications, respectively, either with their
  487.           default window sizes, or as icons.
  488.   
  489.   If you need specific window sizes or positions, you will need to use
  490.   another utility, either shareware package (such as Layout, Command Post or
  491.   Aporia) or a commercial one (such as Batchworks, Bridge or NewWave).
  492.   
  493. ...........................................................................
  494.  
  495. 6.1.2.  Changing or bypassing the startup logo
  496. ----------------------------------------------
  497.   To bypass the logo, you can start Windows with the command line such as
  498.        win :
  499.   Be warned, however, that some people have had problems with this.  Also,
  500.   skipping the startup logo does not speed up the Windows startup process.
  501.   
  502.   To change the logo to something else, you need to first create a .RLE file
  503.   (using a graphics utility package), with no more than 16 colours, and not
  504.   exceeding the VGA 640x480 screen resolution, and no more than 64K in size.
  505.   Once you have this file, say mylogo.rle, enter the following command in
  506.   your system subdirectory:
  507.        copy win.cnf/B+vgalogo.lgo/B+mylogo.rle/B win.com
  508.   If you use CGA or EGA, limit the .RLE file to the appropriate resolution,
  509.   and replace the vgalogo above with cgalogo or egalogo.
  510.   
  511. ...........................................................................
  512.  
  513. 6.1.3.  Changing the font used for the icon labels
  514. --------------------------------------------------
  515.   To use 10-point Arial (substitute your own favorite below), add the
  516.   following two lines to your [Desktop] section of your win.ini file:
  517.        
  518.        Icontitlefacename=Arial
  519.        Icontitlesize=10
  520.   
  521.   A shareware Control Panel utility, More Control also gives you control over
  522.   the icon fonts.
  523.   
  524. ...........................................................................
  525.  
  526. 6.1.4.  Limiting the size of the temporary swap file
  527. ----------------------------------------------------
  528.   In Windows 3.1, you can add a line such as
  529.        MinUserDiskSpace=4096
  530.   to the [386Enh] section of the system.ini file to limit the temporary swap
  531.   file's size.  The above line doesn't actually set the size of the swap
  532.   file, but rather limits its growth to always retain at least 4096 KB (4 MB)
  533.   of available disk space for your and your applications' own use.
  534.   
  535. ...........................................................................
  536.  
  537. 6.1.5.  Making Windows 3.x act like 2.x runtime
  538. -----------------------------------------------
  539.   The Windows 2.x runtime version would start Windows from the DOS prompt,
  540.   and exit back to DOS when you exit the application.
  541.  
  542.   You can do this as follows (the example is for Excel; others are similar):
  543.      
  544.      * Create a new directory called c:\excel (it doesn't have to be distinct;
  545.        it could be your normal Excel directory, as long as it's not the main
  546.        Windows 3.x directory).
  547.      
  548.      * Copy the following to the new directory from the Windows directory:
  549.           win.com
  550.           win.ini
  551.           system.ini
  552.      
  553.      * In the new directory modify the [boot] section of system.ini by
  554.        changing the shell= line to point to the one and only program you want
  555.        to run.  The original line should read:
  556.           shell=progman.exe
  557.        and the modified line should be something like:
  558.           shell=c:\excel\excel.exe.
  559.        Remember to type the complete fileid of the program to be executed,
  560.        including the .exe suffix.
  561.      
  562.      * To execute the dedicated Windows session just put the new directory
  563.        ahead of the normal Windows directory in your path and issue the 'win'
  564.        command, or start Windows with the command 'c:\excel\win'.  What we're
  565.        doing here is making Windows think it's running on a network where the
  566.        actual executable files etc. are on a network server, and only the
  567.        basic control files (and win.com) are on the user's local disk.
  568.      
  569.        Note that this technique isolates any changes in win.ini and system.ini
  570.        made in the dedicated task from any changes made in normal Windows;
  571.        this may or may not be desirable.  If you need to keep the two flavors
  572.        of Windows in sync you'll have to provide an outboard copy function to
  573.        refresh the files.
  574.   
  575. ...........................................................................
  576.  
  577. 6.1.6.  Printing PostScript files without a PostScript printer
  578. --------------------------------------------------------------
  579.   To print PostScript files on a printer without PostScript, you'll need to
  580.   get a third-party PostScript interpreter.  One such product is GhostScript,
  581.   available free from the GNU project.  The current version, 2.52, can be
  582.   found by ftp as /mirrors/msdos/postscript/gs252win.zip  on wuarchive.
  583.   
  584. ...........................................................................
  585.  
  586. 6.1.7.  Search path in Windows
  587. ------------------------------
  588.   In addition to the standard MS-DOS search path, Windows will also search
  589.   the Windows and system directories.  In general, the search order is as
  590.   follows:
  591.      * Current directory on current drive
  592.      * Windows directory
  593.      * System directory
  594.      * MS-DOS search path
  595.      * Current directory on network drives
  596.   
  597. ...........................................................................
  598.  
  599. 6.1.8.  Swapping the Ctrl and CapsLock keys
  600. -------------------------------------------
  601.   One method is to use the public domain program CCSwap, written by David
  602.   Michmerhuizen.  You can find this as swap10.zip at your favorite FTP site,
  603.   
  604.   Alternately, you may be able to use a different keyboard driver.  A good
  605.   one comes with the distribution of Kermit for Windows, available either
  606.   from cica or from the official Kermit archive at watsun.cc.columbia.edu.
  607.   
  608. ...........................................................................
  609.  
  610. 6.1.9.  Using a Dvorak keyboard
  611. -------------------------------
  612.   Installing a Dvorak keyboard for Windows 3.1 is really simple -- just click
  613.   the International icon in Control Panel, and select the "US - Dvorak"
  614.   keyboard layout.
  615.   
  616. ---------------------------------------------------------------------------
  617.  
  618. 6.2.  Program Manager
  619. =====================
  620.   
  621. ...........................................................................
  622.  
  623. 6.2.1.  Changing the font used for the icon labels
  624. --------------------------------------------------
  625.   To use 10-point Arial (substitute your own favorite below), add the
  626.   following two lines to your [Desktop] section of your win.ini file:
  627.        
  628.        Icontitlefacename=Arial
  629.        Icontitlesize=10
  630.   
  631.   A shareware Control Panel utility, More Control also gives you control over
  632.   the icon fonts.
  633.   
  634. ...........................................................................
  635.  
  636. 6.2.2.  Changing the program icon
  637. ---------------------------------
  638.   Choose the item in Program Manager, and then select File Properties. Click
  639.   on Icon..., and then enter the name of the file containing the new icon.
  640.   
  641.   If the icon file is a .DLL or .EXE containing multiple icons, you can
  642.   either scroll though the available icons (in Windows 3.1) or cycle through
  643.   them by clicking Next Icon (Windows 3.0).  After selecting the correct
  644.   icon, click OK, and then OK again.  You can also use icons from other
  645.   programs by the same method: just specify the name of the .exe file instead
  646.   of an .ICO or .DLL file.
  647.   
  648.   The icon that is displayed by the application when it is minimized is
  649.   controlled by the application.  It is not normally possible to change that;
  650.   however, several workarounds exist for changing the icons of running DOS
  651.   applications.
  652.   
  653.        * Windows 3.1 will display the selected Program Manager icon for each
  654.           running DOS application.
  655.        * In Windows 3.0 you can use the iinject or puticon utility to replace
  656.           the standard DOS icon, which is contained in winoa286.mod and/or
  657.           winoa386.mod.
  658.        * The IconFixer utility monitors your DOS applicationsin Windows 3.0,
  659.           and updates their icons as you minimize them, allowing you to have
  660.           different icons for different DOS applications.
  661.        
  662.    All three utilities are available from ftp.cica.indiana.edu.
  663.   
  664. ...........................................................................
  665.  
  666. 6.2.3.  Changing the title of the Program Manager window
  667. --------------------------------------------------------
  668.   In Windows 3.1, you can specify the title of the Program Manager window by
  669.   adding a Program Manager icon to your Startup group.  Windows will not
  670.   start up a second copy of Program Manager, but will use the title you
  671.   specify in File / Properties for the icon.
  672.   
  673. ...........................................................................
  674.  
  675. 6.2.4.  Creating your own icons
  676. -------------------------------
  677.   You can create your own custom icons with either IconDraw (shareware),
  678.   Icon12 (shareware), Tamr11 (shareware), SDKPaint (a part of the Windows
  679.   SDK) or Resource Workshop (a part of Borland C++).  Simply draw your icon,
  680.   and save it as an .ICO file.
  681.   
  682. ...........................................................................
  683.  
  684. 6.2.5.  Creating your own wallpaper
  685. -----------------------------------
  686.   You can save a .msp file as a .bmp from Windows Paintbrush.  You can
  687.   convert a .gif file to a .bmp using the gif2bmp utility from cica.  wingif
  688.   will also do a good conversion, including dithering 256-color images to 16
  689.   colors (rescale before dithering!).  A third, and the most flexible,
  690.   conversion program is PaintShop Pro, which will do color conversions (16M,
  691.   32K, 256 and 16 colors), many format conversions, scaling and clipping.
  692.   Both wingif and PaintShop Pro are shareware, and available at
  693.   ftp.cica.indiana.edu.
  694.   
  695.   A JPEG-format file can also be converted to a walppaper bitmap by first
  696.   uncompressing it with the cjpeg/djpeg utility (free, available at
  697.   wuarchive.wustl.edu and other sites) to a .gif, and then using one of the
  698.   utilities above to convert the .gif to a .bmp.
  699.   
  700. ...........................................................................
  701.  
  702. 6.2.6.  Previewing PostScript output
  703. ------------------------------------
  704.   To preview PostScript output on Windows, you can use GhostScript, a free
  705.   utility from the GNU project.  The current version, 2.52, can be found on
  706.   ftp.cica.indiana.edu and other archive sites as GS252WIN.ZIP.
  707.   
  708. ...........................................................................
  709.  
  710. 6.2.7.  Restricting the Program Manager
  711. ---------------------------------------
  712.   If you want to prevent a user from changing the Program Manager
  713.   configuration, you can insert a combination of the following lines into the
  714.   [Restrictions] section of progman.ini:
  715.        
  716.        NoRun=1            Disables the Run command
  717.        NoClose=1          Disables the Exit Windows command
  718.        NoSaveSettings=1   Disables the Save Settings command
  719.        NoFileMenu=1       Removes the File menu
  720.        EditLevel=(see below)    Sets the edit restriction level
  721.   
  722.   The following are the EditLevel restrictions:
  723.      1 Disables creating,deleting and renaming groups
  724.      2 As 1, plus disables creation/deletion of program items
  725.      3 As 2, plus disables changing program item command lines
  726.      4 As 3, plus disables changing program information
  727.   
  728.   If you boot directly into Windows (and restart it immediately on exit),
  729.   don't allow any unrestricted DOS sessions from Program Manager, and make
  730.   progman.ini read-only, you can accomplish a reasonable level of protection
  731.   from users changing their configuration.
  732.   
  733. ...........................................................................
  734.  
  735. 6.2.8.  Saving Program Manager settings without exiting Windows
  736. ---------------------------------------------------------------
  737.   In Windows 3.0, the trick is to try to select File / Exit with a DOS
  738.   sessionactive; Windows will save the settings, and then refuse to exit.
  739.   
  740.   In Windows 3.1, you can press Alt+Shift+F4 at any time (while you are in
  741.   Program Manager) to save the settings.
  742.   
  743. ...........................................................................
  744.  
  745. 6.2.9.  Starting Windows without activating the applications in the Startup
  746. group
  747. ------------------------------------------------------------------------------
  748. ---
  749.   You can do this by holding down the Shift key when the Windows startup
  750.   screen appears, and then releasing it once Program Manager is active.
  751.   
  752. ...........................................................................
  753.  
  754. 6.2.10.  Starting an application in a different directory
  755. ---------------------------------------------------------
  756.   To start up a Windows application in a default directory other than the
  757.   Windows directory (or application executable directory), you have a number
  758.   of choices:
  759.   
  760.      * In Windows 3.1, set the Working Directory under File Properties for the
  761.        application.
  762.   
  763.      * Create a auto-execute macro for that application, which will change
  764.        your directory upon startup.
  765.      
  766.      * Specify your application's path in Program Manager as something such as
  767.        d:\u\personal\letters\winword.exe.  As long as the application is on
  768.        your path, it will be started as usual, but with the default directory
  769.        being the one you specified in Program Manager.  Note that Program
  770.        Manager will complain of this when you enter the path (and may require
  771.        you to manually select an icon), but it will work.
  772.      
  773.      * Create a dummy document for your application in the desired directory.
  774.        As long as you have your application listed under [Extensions] in your
  775.        win.ini file, starting that document from Program Manager (either with
  776.        File / Run or by adding it as an icon to a group) will then start the
  777.        application with that document loaded, and in the correct directory.
  778.      .
  779.      *  For Word for Windows 2.0, add the line
  780.       Doc-Path=pathname
  781.        into the [Microsoft Word 2.0] section of your win.ini file.  This will
  782.        cause Word to start up in the specified directory every time.
  783.   
  784. ---------------------------------------------------------------------------
  785.  
  786. 6.3.  Windows Accessories
  787. =========================
  788.   
  789. ...........................................................................
  790.  
  791. 6.3.1.  Cardfile: Converting to ASCII text
  792. ------------------------------------------
  793.   To convert a cardfile to a text file, use the WinCrd utility, available
  794.   from ftp.cica.indiana.edu.
  795.   
  796. ...........................................................................
  797.  
  798. 6.3.2.  Clock: Windows 3.1 Clock limitations
  799. --------------------------------------------
  800.   The Windows 3.1 clock is limited to one instance (simultaneously running
  801.   copy) by design, as it retains the position and size you last specified for
  802.   it.  You can, however, run any number of Windows 3.0 clocks that you want
  803.   in 3.1.  As an alternative, you may want to take a look at the TimeFrame
  804.   freeware program from ftp.cica.indiana.edu, which places the current time
  805.   in the title bar of the active window.
  806.   
  807. ...........................................................................
  808.  
  809. 6.3.3.  Help: Changing the keyword colors
  810. -----------------------------------------
  811.   To change the keyword colors in your Windows help files, you can add some
  812.   or all of the following lines to the [Windows Help] section of your win.ini
  813.   file:
  814.        
  815.        JumpColor=255 0 0
  816.        PopupColor=0 0 255
  817.        MacroColor=0 128 0
  818.        IFJumpColor=128 0 0
  819.        IFPopupColor=0 0 128
  820.        
  821.   The arguments are the intensities of Red, Green and Blue, respectively,
  822.   with
  823.   legal values between 0 and 255. This means that JumpColor (above) would be
  824.   an intense red.  The IFJumpColor= and IFPopupColor= settings determine the
  825.   colors for inter-file jumps and popups.
  826.   
  827. ...........................................................................
  828.  
  829. 6.3.4.  Notepad: F5 and current time
  830. ------------------------------------
  831.   F5 in Windows 3.0 Notepad inserts only a date and not the time as well --
  832.   it's a known bug.  And it's fixed in Windows 3.1.
  833.   
  834. ...........................................................................
  835.  
  836. 6.3.5.  Recorder: Recording more than 60 seconds of sound
  837. ---------------------------------------------------------
  838.   If you want to record, say, three minutes, follow this procedure:
  839.   * Record 60 seconds (Recorder will stop).
  840.   * Immediately record again for 60 seconds.
  841.   * Repeat one more time.
  842.   * Drag the scroll bar thumb all the way to the left
  843.   With this procedure, you will be able to record 180 seconds of sound.
  844.   Repeat more times if you need more than 3 minutes of sound.
  845.   
  846.   
  847. ...........................................................................
  848.  
  849. 6.3.6.  Terminal: Keypad
  850. ------------------------
  851.   Press ScrollLock to toggle the keypad between local and remote mode. The
  852.   default is local mode.
  853.   
  854. ...........................................................................
  855.  
  856. 6.3.7.  General: "Can't open TEMP.WRI" (or similar message)
  857. -----------------------------------------------------------
  858.   A message similar to this one is likely caused by an invalid definition of
  859.   the TEMP environment variable in your autoexec.bat.  Havign a trailing
  860.   space on the definition line can cause various Windows applications to
  861.   generate invalid temporary filenames similar to the one noted.  Correct the
  862.   problem by making sure there are no trailing blanks.
  863.   
  864. ---------------------------------------------------------------------------
  865.  
  866. 6.4.  Changing default directories
  867. ==================================
  868.   
  869. ...........................................................................
  870.  
  871. 6.4.1.  Bitmaps
  872. ---------------
  873.   You cannot move the bitmaps from the Windows directory unless you use a
  874.   utility program such a PaperBoy.
  875.   
  876. ...........................................................................
  877.  
  878. 6.4.2.  Fonts
  879. -------------
  880.   To move your TrueType fonts to a different directory, follow the procedure
  881.   below:
  882.        *
  883.   
  884. ...........................................................................
  885.  
  886. 6.4.3.  Icons
  887. -------------
  888.   Yoy may place your fonts in any directory you wish, as long as you update
  889.   your Program Manager's File / Properties dialogs to point to the correct
  890.   location.
  891.   
  892. ---------------------------------------------------------------------------
  893.  
  894. 6.5.  Fonts
  895. ===========
  896.   
  897. ...........................................................................
  898.  
  899. 6.5.1.  TrueType, ATM and FaceLift
  900. ----------------------------------
  901.   In case you were wondering whether Bitstream FaceLift, Adobe Type Manager
  902.   (ATM) and TrueType really work -- yes, they do.
  903.   
  904.   Here are some things to consider:
  905.      * TrueType is included free with Windows 3.1 (and Apple System 7.0).
  906.        It's somewhat more flexible than ATM in its font description
  907.        capabilities, and renders very fast to LaserJet II-compatible
  908.        printers.
  909.      
  910.      * ATM uses the ubiquitous Type 1 fonts, which are widely available, both
  911.        commercially and at FTP sites.  It has had some compatability
  912.        problems, but version 2.0 is fully compatible with Windows 3.1.
  913.      
  914.      * FaceLift provides the most user control of three, but has the poorest
  915.        native font support.  Version 2.0, however, can use Adobe Type 1 fonts
  916.        directly.  It also lets you generate LaserJet soft fonts for higher
  917.        printing speeds.
  918.   
  919.   At street prices not much above $50, ATM and FaceLift were definitely worth
  920.   their prices, at least before Windows 3.1.  Now, with the free TrueType,
  921.   you may wish to postpone your ATM or FaceLift purchase until you have
  922.   determined whether TrueType will satisfy your needs.
  923.   
  924. ...........................................................................
  925.  
  926. 6.5.2.  Converting Font Formats
  927. -------------------------------
  928.   There are at least two packages available to convert between Type 1 (ATM)
  929.   and TrueType formats: AllType ($79) and FontMonger ($99).  AllType,
  930.   however, imposes its own copyright on any converted fonts, as well as doing
  931.   a generally unsatisfactory job of coverting from ATM to TrueType.
  932.   
  933.   Macintosh TrueType fonts are also directly compatable with Windows (you
  934.   only need to strip off the resource fork from the Mac file).
  935.   
  936. ...........................................................................
  937.  
  938. 6.5.3.  Viewing available fonts
  939. -------------------------------
  940.   At least three shareware/freeware programs claim to be able to do provide a
  941.   listing of all available fonts: Fonter, FontShow and Compose are all
  942.   available at ftp.cica.indiana.edu.
  943.   
  944. ...........................................................................
  945.  
  946. 6.5.4.  Foreign character sets
  947. ------------------------------
  948.   To create Cyrillic documents, you may wish to use the shareware CyrWin
  949.   package, available from ftp.cica.indiana.edu as well as other sources.
  950.   Cyrillic fonts are also available from Data-Cal (602-545-1234) and East
  951.   West Trade Consulting (+49-8230-4925 in Germany).
  952.   
  953.   Hebrew fonts are also available from Data-Cal.  Also, the WinGreek package
  954.   at ftp.cica.indiana.edu contains Hebrew fonts (for screen and LaserJets; an
  955.   ATM version is under development).
  956.   
  957.   I am not aware of any Arabic fonts, but Eastern Language Systems in Utah
  958.   (801-377-2200) has an Arabic word processor called AlKatiib, as well as a
  959.   Persian one called Vazhe Negar.
  960.   
  961.   Data-Cal's WorldFont for Windows package also includes some Japanese
  962.   language support, and a Japanese font called Shorai is reputed to be
  963.   available on FTP sites.
  964.   
  965. ...........................................................................
  966.  
  967. 6.5.5.  Converting Macintosh Type 1 (ATM) fonts to Windows
  968. ----------------------------------------------------------
  969.   Thanks for this procedure to Norman Walsh, the maintainer of the comp.fonts
  970.   FAQ.
  971.   
  972.   Converting Macintosh Type1 fonts into PC Type1 fonts can be done using
  973.   purely free/shareware tools.  I've outlined the procedure below.  Make sure
  974.   you read
  975.   the "readme" files that accompany many fonts.  Some font authors
  976.   specifically deny permission to do cross-platform conversions.
  977.   
  978.   The tools you need:
  979.      xbin    xbin23.zip    in /pub/msdos/mac on oak.oakland.edu (or other
  980.                       mirrors)
  981.      unsit   unsit30.zip   in /pub/msdos/mac on oak.oakland.edu
  982.      uncpt   ext-pc.zip    in /pub/pc/win3/util on ftp.cica.indiana.edu
  983.      refont  refont11.zip  in /pub/pc/win3/fonts on ftp.cica.indiana.edu
  984.      bmap2afm         bm2af01.zip    in /pub/norm/mac-font-tools on
  985.                       ibis.cs.umass.edu
  986.   
  987.      xbin converts Mac BinHexed files back into binary format.  BinHex is the
  988.      Mac equivalent of uuencoding: it translates files into hexidecimal digits
  989.      so that mailers can send them around without difficulty.  It also aids in
  990.      cross-platform copying.  BinHexed files generally have filenames of the
  991.      form "xxx.yyy.HQX".
  992.      
  993.      unsit explodes Stuffit archives.  Stuffit archives generally have
  994.      filenames of the form "xxx.SIT".
  995.      
  996.      uncpt exploces Compactor archives.  The ext-pc implementation is called
  997.      extract and does not require Windows (even thought it's in the Windows
  998.      section on cica).  Compactor archives generally have filenames of the
  999.      form "xxx.CPT".
  1000.      
  1001.      refont converts Mac type1 fonts into PC type1 fonts.
  1002.      
  1003.      bmap2afm constructs AFM files from the metric information contained in
  1004.      Mac screen fonts (.bmap files).  The screen font files do not have any
  1005.      standard name (although they frequently have the extension .bmap).  The
  1006.      screen fonts have file type "FFIL" which, in combination with some common
  1007.      sense, is usually sufficient to identify them.
  1008.      
  1009.      It's probably a good idea to check with archie for closer sites if you're
  1010.      not in North America.  These tools run under MS-DOS.  xbin and unsit can
  1011.      also be run under Unix.
  1012.   
  1013.   How to do it:
  1014.      Collect the Mac fonts from the archive or BBS of your choice.  Most of
  1015.      these files will be in BinHexed format.  As a running example, we'll use
  1016.      the imaginary font "Plugh.cpt.hqx".  When you download this font to my
  1017.      PC, you would use the name "PLUGH.CPX".  The actual name you use is
  1018.      immaterial.
  1019.      
  1020.      Run xbin on PLUGH.CPX.  This will produce PLUGH.DAT, PLUGH.INF, and
  1021.      PLUGH.RSR.  The data fork of the Mac file (the .DAT file) is the only one
  1022.      of interest to
  1023.      us, you can delete the others.
  1024.      
  1025.      If the original file had been "Plugh.sit.hqx", we would be using the
  1026. END--cut here--cut here
  1027.