NoClose, Version 1.0
  Replacer for file noclose.pif that is used in Total Commander.

Author of the program: Konstantin Vlasov, 2005
Homepage: http://flint-inc.ru
E-mail:   support@flint_inc.ru


Description
-----------

Total Commander has possibility to run console applications so that the console
window is not closed after the program was finished. To do so, just start the
program with Shift+Enter instead of usual Enter. This will start the following
command line:
  noclose.pif /C <parameters>
where <parameters> is the application that you starts (maybe, with its own
parameters). The file noclose.pif is located in the Windows directory. It starts
command.com so that its window is not closed after finishing. So user can read
all the information that the program wrote, and then close the console window
manually.

There are however some drawbacks of this approach:
1. After the program is finished, the console window is inactive and only can
be closed with the button in the title bar. Also one cannot start some other
program in this console.
2. This window does not have scroll bars. So if the program's output takes more
than one screen, it is impossible to read it whole.
3. Very often it works incorrectly with long file names (especially containing
spaces) and the program just cannot be started.

This program was designed to fix all these disadvantages.


Installing
----------

Just copy the files NoClose.ini and NoClose.pif from the archive into your
Windows directory. Then write in the NoClose.ini correct settings (see
description below) and... that's all, enjoy it! :-)
If you have Windows NT/2000/XP/2003 installed, you can use the file NoClose.ini
from the archive without changes, the program cmd.exe will be used as command
interpreter (cmd.exe is present in Windows itself).
If you have Windows 95/98/ME you need some command interpreter to use instead
of command.com. You can use freeware shell 4DOS by JPsoft (http://jpsoft.com/).
The only feature it does not implement is presence of scrollbars, but most
likely this is the restriction of Windows 9x. Also please note that when
closing many DOS-applications by means of Close button in the title bar a
warning is shown about possible data loss. 4DOS is free from this disadvantage
(at least when running under Win9x).


Settings
---------

[General]

CommandProcessor
  The program that will be used as command shell for starting the concole
  application. By default "cmd.exe /K" is used. In this line you can specify the
  expression %1 that will be replaced with the full parameters list, including
  the program name. If %1 is not used, the parameters list will just be added to
  the line specified.
  Example 1:
    What is run: noclose.pif /C file.exe /param1 /param2
    CommandProcessor=cmd.exe /K
    Result: cmd.exe /K file.exe /param1 /param2
  Example 2:
    What is run: noclose.pif /C file.exe /param1 /param2
    CommandProcessor="C:\Program Files\4DOS\4DOS.COM"
    Result: "C:\Program Files\4DOS\4DOS.COM" file.exe /param1 /param2
  Example 3:
    What is run: noclose.pif /C file.exe /param1 /param2
    CommandProcessor=shell.exe "%1" /wait
    Result: shell.exe "file.exe /param1 /param2" /wait

ShowWindow
  This parameter specifies how the console window will look. Possible values:
    normal   - the window is opened as usual, in normal mode.
    hide     - the window will be hidden. This mode is not recommended, because
               in this case you will not be able to terminate the application
               correctly!
    minimize - after creation the window is minimized.
    maximize - after creation the window is maximized.
  By default the mode "normal" is used.


Thanks
------

First, thanks to Led who clearly stated the idea of the program and created the
first working prototype for it using Delphi. Unfortunately, this IDE creates
very large exe files, so now the program is developed using C++.

Also thanks to Vadim Kazakov who acted as the beta-tester for this program.

And of course, I can't but thank Christian Ghisler who created such wonderful
tool as Total Commander.
