mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 00:50:23 +00:00
Last update for millenium release
Fixed some minor bugs Fixed window title svn path=/trunk/; revision=909
This commit is contained in:
parent
9446011fc1
commit
c7580dacf3
6 changed files with 61 additions and 96 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: cmd.c,v 1.17 1999/12/15 00:50:41 ekohl Exp $
|
/* $Id: cmd.c,v 1.18 1999/12/28 23:06:21 ekohl Exp $
|
||||||
*
|
*
|
||||||
* CMD.C - command-line interface.
|
* CMD.C - command-line interface.
|
||||||
*
|
*
|
||||||
|
@ -110,6 +110,9 @@
|
||||||
*
|
*
|
||||||
* 15-Dec-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
* 15-Dec-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
||||||
* Fixed current directory
|
* Fixed current directory
|
||||||
|
*
|
||||||
|
* 28-Dec-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
||||||
|
* Restore window title after program/batch execution
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -167,6 +170,9 @@ static VOID
|
||||||
Execute (LPTSTR first, LPTSTR rest)
|
Execute (LPTSTR first, LPTSTR rest)
|
||||||
{
|
{
|
||||||
TCHAR szFullName[MAX_PATH];
|
TCHAR szFullName[MAX_PATH];
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
TCHAR szWindowTitle[MAX_PATH];
|
||||||
|
#endif
|
||||||
DWORD dwExitCode = 0;
|
DWORD dwExitCode = 0;
|
||||||
|
|
||||||
#ifdef _DEBUG
|
#ifdef _DEBUG
|
||||||
|
@ -223,6 +229,10 @@ Execute (LPTSTR first, LPTSTR rest)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
GetConsoleTitle (szWindowTitle, MAX_PATH);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* check if this is a .BAT or .CMD file */
|
/* check if this is a .BAT or .CMD file */
|
||||||
if (!_tcsicmp (_tcsrchr (szFullName, _T('.')), _T(".bat")) ||
|
if (!_tcsicmp (_tcsrchr (szFullName, _T('.')), _T(".bat")) ||
|
||||||
!_tcsicmp (_tcsrchr (szFullName, _T('.')), _T(".cmd")))
|
!_tcsicmp (_tcsrchr (szFullName, _T('.')), _T(".cmd")))
|
||||||
|
@ -301,6 +311,10 @@ Execute (LPTSTR first, LPTSTR rest)
|
||||||
"Error executing CreateProcess()!!\n");
|
"Error executing CreateProcess()!!\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __REACTOS__
|
||||||
|
SetConsoleTitle (szWindowTitle);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: cmd.h,v 1.17 1999/12/15 00:50:41 ekohl Exp $
|
/* $Id: cmd.h,v 1.18 1999/12/28 23:06:35 ekohl Exp $
|
||||||
*
|
*
|
||||||
* CMD.H - header file for the modules in CMD.EXE
|
* CMD.H - header file for the modules in CMD.EXE
|
||||||
*
|
*
|
||||||
|
@ -113,7 +113,6 @@ INT cmd_cls (LPTSTR, LPTSTR);
|
||||||
|
|
||||||
|
|
||||||
/* Prototypes for CMD.C */
|
/* Prototypes for CMD.C */
|
||||||
//void command(char *);
|
|
||||||
VOID ParseCommandLine (LPTSTR);
|
VOID ParseCommandLine (LPTSTR);
|
||||||
VOID AddBreakHandler (VOID);
|
VOID AddBreakHandler (VOID);
|
||||||
VOID RemoveBreakHandler (VOID);
|
VOID RemoveBreakHandler (VOID);
|
||||||
|
@ -139,7 +138,6 @@ extern COMMAND cmds[]; /* The internal command table */
|
||||||
|
|
||||||
/* Prototypes for COLOR.C */
|
/* Prototypes for COLOR.C */
|
||||||
VOID SetScreenColor(WORD wArgColor, BOOL bFill);
|
VOID SetScreenColor(WORD wArgColor, BOOL bFill);
|
||||||
//VOID SetScreenColor (WORD);
|
|
||||||
INT CommandColor (LPTSTR, LPTSTR);
|
INT CommandColor (LPTSTR, LPTSTR);
|
||||||
|
|
||||||
|
|
||||||
|
@ -153,10 +151,8 @@ VOID ConInDisable (VOID);
|
||||||
VOID ConInEnable (VOID);
|
VOID ConInEnable (VOID);
|
||||||
VOID ConInFlush (VOID);
|
VOID ConInFlush (VOID);
|
||||||
VOID ConInKey (PINPUT_RECORD);
|
VOID ConInKey (PINPUT_RECORD);
|
||||||
|
|
||||||
VOID ConInString (LPTSTR, DWORD);
|
VOID ConInString (LPTSTR, DWORD);
|
||||||
|
|
||||||
|
|
||||||
VOID ConOutChar (TCHAR);
|
VOID ConOutChar (TCHAR);
|
||||||
VOID ConOutPuts (LPTSTR);
|
VOID ConOutPuts (LPTSTR);
|
||||||
VOID ConOutPrintf (LPTSTR, ...);
|
VOID ConOutPrintf (LPTSTR, ...);
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#define CMD_VER "0.1 pre 7"
|
#define CMD_VER "0.1"
|
||||||
#define CMD_VER_RC CMD_VER"\0"
|
#define CMD_VER_RC CMD_VER"\0"
|
||||||
|
|
|
@ -9,8 +9,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* undefine only if used under ReactOS */
|
/* Define only if used under ReactOS */
|
||||||
//#define __REACTOS__
|
#define __REACTOS__
|
||||||
|
|
||||||
#ifndef _CONFIG_H_INCLUDED_
|
#ifndef _CONFIG_H_INCLUDED_
|
||||||
#define _CONFIG_H_INCLUDED_
|
#define _CONFIG_H_INCLUDED_
|
||||||
|
@ -103,17 +103,4 @@
|
||||||
#define INCLUDE_CMD_WINDOW
|
#define INCLUDE_CMD_WINDOW
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
commands that do not have a define:
|
|
||||||
|
|
||||||
exit
|
|
||||||
call
|
|
||||||
echo
|
|
||||||
goto
|
|
||||||
for
|
|
||||||
if
|
|
||||||
shift
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#endif /* _CONFIG_H_INCLUDED_ */
|
#endif /* _CONFIG_H_INCLUDED_ */
|
||||||
|
|
|
@ -344,8 +344,8 @@ o Added CHCP command.
|
||||||
o Fixed keyboard input bug.
|
o Fixed keyboard input bug.
|
||||||
o Rewrote DEL and MOVE commands.
|
o Rewrote DEL and MOVE commands.
|
||||||
|
|
||||||
01-Sep-1999 ReactOS CMD version 0.1 pre 7 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
28-Dec-1999 ReactOS CMD version 0.1 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
o Cleaned up DIR command.
|
o Cleaned up DIR command.
|
||||||
o Searching for executables in the right order.
|
o Searching for executables in the right order.
|
||||||
o Fixed some little but nasty bugs.
|
o Fixed some little but nasty bugs.
|
||||||
|
@ -355,4 +355,5 @@ o Added CHOICE, TIMER, FREE and MEMORY commands.
|
||||||
o Added MSGBOX command (not available under ReactOS).
|
o Added MSGBOX command (not available under ReactOS).
|
||||||
o Added and fixed missing help texts.
|
o Added and fixed missing help texts.
|
||||||
o Fixed bugs in MD and RD that crashed cmd when no directory was specified.
|
o Fixed bugs in MD and RD that crashed cmd when no directory was specified.
|
||||||
|
o Improved history support.
|
||||||
|
o Improved COLOR command.
|
||||||
|
|
|
@ -1,77 +1,42 @@
|
||||||
ReactOS Command Line Interface "CMD" version 0.1 pre 2
|
ReactOS command line interpreter CMD version 0.1
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
This is the fourth pre-alpha release of CMD.EXE for ReactOS.
|
The ReactOS command line interpreter CMD is derived from FreeCOM, the
|
||||||
It was converted from the FreeDOS COMMAND.COM.
|
FreeDOS command line interpreter.
|
||||||
|
|
||||||
|
We are going for 4NT compatibility but try to stay compatible with
|
||||||
Warning!! Warning!! Warning!!
|
WinNT's CMD.EXE too.
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
This is an alpha version! Many features have not been tested!
|
|
||||||
Be careful when you use commands that write to your disk drives,
|
|
||||||
they might destroy your files or the file system!!!
|
|
||||||
|
|
||||||
|
|
||||||
Status
|
|
||||||
~~~~~~
|
|
||||||
This is a converted version of FreeDOS COMMAND.COM.
|
|
||||||
I added some commands from WinNT's CMD.EXE.
|
|
||||||
|
|
||||||
|
|
||||||
New features and improvements
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
- Fixed redirection and piping.
|
|
||||||
(E.g. you can use "type > file" now.)
|
|
||||||
- Added new error redirections "2>" and "2>>".
|
|
||||||
(E.g.: "make 2>error.log")
|
|
||||||
- Added CHCP command.
|
|
||||||
- Fixed environment handling.
|
|
||||||
- New makefile for lcc-win (makefile.lcc).
|
|
||||||
- Rewrote DEL and MOVE with a new structure.
|
|
||||||
- Improved national language support.
|
|
||||||
- Fixed filename completion.
|
|
||||||
|
|
||||||
|
|
||||||
Compiling
|
Compiling
|
||||||
~~~~~~~~~
|
~~~~~~~~~
|
||||||
I converted CMD using MS Visual C++ 5.0 and Win95. The included makefile
|
Cmd can be built in two different versions. A full version for use under
|
||||||
is just an experimental version.
|
Windows 9x or Windows NT and a reduced version for use under ReactOS.
|
||||||
|
|
||||||
If you want to compile and test CMD with djgpp, modify the makefile as needed.
|
Note: The full version won't runder ReactOS and the reduced version is not
|
||||||
I put the CMD sources into [reactos\apps], the makefile is written for that
|
usable under Win 9x/NT.
|
||||||
directory.
|
|
||||||
|
|
||||||
If you want to compile and test CMD using another compiler, just create
|
To build the full version, make sure the symbol '__REACTOS__' is NOT defined
|
||||||
a new console application project and add all *.c and *.h files to it.
|
in 'rosapps/cmd/config.h' line 13.
|
||||||
It should compile without an error.
|
|
||||||
|
To build the reduced version, make sure the symbol '__REACTOS__' is defined
|
||||||
|
in 'rosapps/cmd/config.h' line 13.
|
||||||
|
|
||||||
|
|
||||||
Please report bugs which are not listed above.
|
Current Features
|
||||||
|
~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
- environment handling with prompt and path support.
|
||||||
|
- directory utilities.
|
||||||
|
- command-line history with doskey-like features.
|
||||||
|
- batch file processing.
|
||||||
|
- input/output redirection and piping.
|
||||||
|
- alias support.
|
||||||
|
- filename completion (use TAB)
|
||||||
|
|
||||||
|
|
||||||
Good luck
|
Credits
|
||||||
|
~~~~~~~
|
||||||
Eric Kohl <ekohl@abo.rhein-zeitung.de>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
FreeDOS Command Line Interface
|
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
||||||
About
|
|
||||||
~~~~~
|
|
||||||
This software is part of the FreeDOS project. Please email
|
|
||||||
freedos@sunsite.unc.edu for more information, or visit the freedos
|
|
||||||
archive at "ftp://sunsite.unc.edu/pub/micro/pc-stuff/freedos". Also,
|
|
||||||
visit our web page at http://www.freedos.org/.
|
|
||||||
|
|
||||||
The command.com web site is at
|
|
||||||
|
|
||||||
http://www.gcfl.net/FreeDOS/command.com/
|
|
||||||
|
|
||||||
|
|
||||||
This software has been developed by the following people:
|
|
||||||
(listed in approximate chronological order of contributions)
|
|
||||||
|
|
||||||
FreeDOS developers:
|
FreeDOS developers:
|
||||||
normat@rpi.edu (Tim Norman)
|
normat@rpi.edu (Tim Norman)
|
||||||
|
@ -88,14 +53,16 @@ FreeDOS developers:
|
||||||
|
|
||||||
ReactOS developers:
|
ReactOS developers:
|
||||||
Eric Kohl <ekohl@abo.rhein-zeitung.de>
|
Eric Kohl <ekohl@abo.rhein-zeitung.de>
|
||||||
|
Emanuele Aliberti <ea@iol.it>
|
||||||
|
Paolo Pantaleo <paolopan@freemail.it>
|
||||||
|
|
||||||
|
|
||||||
Current Features
|
Bugs
|
||||||
~~~~~~~~~~~~~~~~
|
~~~~
|
||||||
- environment handling with prompt and path support.
|
|
||||||
- directory utilities.
|
Please report bugs to Eric Kohl <ekohl@abo.rhein-zeitung.de>.
|
||||||
- command-line history with doskey-like features.
|
|
||||||
- batch file processing.
|
|
||||||
- input/output redirection and piping.
|
Good luck
|
||||||
- alias support.
|
|
||||||
- filename completion (use TAB)
|
Eric Kohl
|
||||||
|
|
Loading…
Reference in a new issue