2001-02-03 10:37:51 +00:00
|
|
|
/* $Id: cmd.h,v 1.21 2001/02/03 10:37:51 ekohl Exp $
|
1999-12-15 00:50:41 +00:00
|
|
|
*
|
1999-03-20 20:28:42 +00:00
|
|
|
* CMD.H - header file for the modules in CMD.EXE
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* History:
|
|
|
|
*
|
|
|
|
* 7-15-95 Tim Norman
|
|
|
|
* started
|
|
|
|
*
|
|
|
|
* 06/29/98 (Rob Lake)
|
|
|
|
* Moved error messages in here
|
|
|
|
*
|
|
|
|
* 07/12/98 (Rob Lake)
|
1999-03-21 21:32:45 +00:00
|
|
|
* Moved more error messages here.
|
1999-03-20 20:28:42 +00:00
|
|
|
*
|
|
|
|
* 30-Jul-1998 (John P Price <linux-guru@gcfl.net>)
|
1999-03-21 21:32:45 +00:00
|
|
|
* Added compile date to version.
|
|
|
|
*
|
|
|
|
* 26-Feb-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
|
|
|
* Introduced a new version string.
|
|
|
|
* Thanks to Emanuele Aliberti!
|
1999-03-20 20:28:42 +00:00
|
|
|
*/
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
#ifndef _CMD_H_INCLUDED_
|
|
|
|
#define _CMD_H_INCLUDED_
|
|
|
|
|
|
|
|
#include "config.h"
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
#include <windows.h>
|
1999-03-21 21:32:45 +00:00
|
|
|
#include <tchar.h>
|
|
|
|
|
1999-09-04 20:50:34 +00:00
|
|
|
#include "cmdver.h"
|
1999-03-21 21:32:45 +00:00
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#define SHELLVER "Version " CMD_VER " [" __DATE__ ", msc]"
|
|
|
|
#else
|
|
|
|
#ifdef __LCC__
|
|
|
|
#define SHELLVER "Version " CMD_VER " [" __DATE__ ", lcc-win32]"
|
|
|
|
#else
|
|
|
|
#define SHELLVER "Version " CMD_VER " [" __DATE__ "]"
|
|
|
|
#endif
|
|
|
|
#endif
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define BREAK_BATCHFILE 1
|
|
|
|
#define BREAK_OUTOFBATCH 2
|
|
|
|
#define BREAK_INPUT 3
|
|
|
|
#define BREAK_IGNORE 4
|
|
|
|
|
|
|
|
/* define some error messages */
|
|
|
|
#define NOENVERR "ERROR: no environment"
|
|
|
|
#define INVALIDDRIVE "ERROR: invalid drive"
|
|
|
|
#define INVALIDFUNCTION "ERROR: invalid function"
|
|
|
|
#define ACCESSDENIED "ERROR: access denied"
|
|
|
|
#define BADENVIROMENT "ERROR: bad enviroment"
|
|
|
|
#define BADFORMAT "ERROR: bad format"
|
|
|
|
#define ERROR_E2BIG "ERROR: Argument list too long"
|
|
|
|
#define ERROR_EINVAL "ERROR: Invalid argument"
|
|
|
|
|
1999-12-15 00:50:41 +00:00
|
|
|
#define SHELLINFO "ReactOS Command Line Interpreter"
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define D_ON "on"
|
|
|
|
#define D_OFF "off"
|
|
|
|
|
|
|
|
|
2001-02-03 10:37:51 +00:00
|
|
|
/* command line buffer length */
|
|
|
|
#ifdef __REACTOS__
|
|
|
|
#define CMDLINE_LENGTH 512
|
|
|
|
#else
|
|
|
|
#define CMDLINE_LENGTH 8192
|
|
|
|
//#define CMDLINE_LENGTH 1024
|
|
|
|
#endif
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-12-15 00:50:41 +00:00
|
|
|
/* global variables */
|
1999-03-20 20:28:42 +00:00
|
|
|
extern HANDLE hOut;
|
|
|
|
extern HANDLE hIn;
|
|
|
|
extern WORD wColor;
|
|
|
|
extern WORD wDefColor;
|
|
|
|
extern BOOL bCtrlBreak;
|
|
|
|
extern BOOL bIgnoreEcho;
|
|
|
|
extern BOOL bExit;
|
1999-03-21 21:32:45 +00:00
|
|
|
extern INT nErrorLevel;
|
1999-03-20 20:28:42 +00:00
|
|
|
extern SHORT maxx;
|
|
|
|
extern SHORT maxy;
|
|
|
|
extern OSVERSIONINFO osvi;
|
|
|
|
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for ALIAS.C */
|
1999-10-03 22:20:33 +00:00
|
|
|
VOID InitializeAlias (VOID);
|
|
|
|
VOID DestroyAlias (VOID);
|
1999-03-21 21:32:45 +00:00
|
|
|
VOID ExpandAlias (LPTSTR, INT);
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandAlias (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for ATTRIB.C */
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandAttrib (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for BEEP.C */
|
|
|
|
INT cmd_beep (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
|
|
|
/* Prototypes for CALL.C */
|
|
|
|
INT cmd_call (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
/* Prototypes for CHCP.C */
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandChcp (LPTSTR, LPTSTR);
|
1999-09-12 18:23:31 +00:00
|
|
|
|
|
|
|
|
1999-08-21 21:54:30 +00:00
|
|
|
/* Prototypes for CHOICE.C */
|
|
|
|
INT CommandChoice (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for CLS.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_cls (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-12-15 00:50:41 +00:00
|
|
|
/* Prototypes for CMD.C */
|
|
|
|
VOID ParseCommandLine (LPTSTR);
|
|
|
|
VOID AddBreakHandler (VOID);
|
|
|
|
VOID RemoveBreakHandler (VOID);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for CMDINPUT.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
VOID ReadCommand (LPTSTR, INT);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for CMDTABLE.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
#define CMD_SPECIAL 1
|
|
|
|
#define CMD_BATCHONLY 2
|
2000-07-19 06:58:13 +00:00
|
|
|
#define CMD_HIDE 4
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
typedef struct tagCOMMAND
|
|
|
|
{
|
|
|
|
LPTSTR name;
|
|
|
|
INT flags;
|
|
|
|
INT (*func) (LPTSTR, LPTSTR);
|
|
|
|
} COMMAND, *LPCOMMAND;
|
|
|
|
|
1999-12-06 19:26:49 +00:00
|
|
|
extern COMMAND cmds[]; /* The internal command table */
|
|
|
|
|
2000-07-19 06:58:13 +00:00
|
|
|
VOID PrintCommandList (VOID);
|
|
|
|
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for COLOR.C */
|
1999-11-04 11:29:36 +00:00
|
|
|
VOID SetScreenColor(WORD wArgColor, BOOL bFill);
|
|
|
|
INT CommandColor (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for CONSOLE.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
#ifdef _DEBUG
|
|
|
|
VOID DebugPrintf (LPTSTR, ...);
|
|
|
|
#endif /* _DEBUG */
|
|
|
|
|
|
|
|
VOID ConInDummy (VOID);
|
1999-12-15 00:50:41 +00:00
|
|
|
VOID ConInDisable (VOID);
|
|
|
|
VOID ConInEnable (VOID);
|
1999-08-21 21:54:30 +00:00
|
|
|
VOID ConInFlush (VOID);
|
1999-03-20 20:28:42 +00:00
|
|
|
VOID ConInKey (PINPUT_RECORD);
|
|
|
|
VOID ConInString (LPTSTR, DWORD);
|
|
|
|
|
|
|
|
VOID ConOutChar (TCHAR);
|
|
|
|
VOID ConOutPuts (LPTSTR);
|
|
|
|
VOID ConOutPrintf (LPTSTR, ...);
|
|
|
|
VOID ConErrChar (TCHAR);
|
|
|
|
VOID ConErrPuts (LPTSTR);
|
|
|
|
VOID ConErrPrintf (LPTSTR, ...);
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
SHORT GetCursorX (VOID);
|
|
|
|
SHORT GetCursorY (VOID);
|
|
|
|
VOID GetCursorXY (PSHORT, PSHORT);
|
|
|
|
VOID SetCursorXY (SHORT, SHORT);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
VOID GetScreenSize (PSHORT, PSHORT);
|
|
|
|
VOID SetCursorType (BOOL, BOOL);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for COPY.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_copy (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for DATE.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_date (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for DEL.C */
|
1999-10-23 18:17:37 +00:00
|
|
|
INT CommandDelete (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
/* Prototypes for DELAY.C */
|
|
|
|
INT CommandDelay (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for DIR.C */
|
1999-12-15 00:50:41 +00:00
|
|
|
INT CommandDir (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for DIRSTACK.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
VOID InitDirectoryStack (VOID);
|
|
|
|
VOID DestroyDirectoryStack (VOID);
|
|
|
|
INT GetDirectoryStackDepth (VOID);
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandPushd (LPTSTR, LPTSTR);
|
|
|
|
INT CommandPopd (LPTSTR, LPTSTR);
|
1999-10-23 18:17:37 +00:00
|
|
|
INT CommandDirs (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for ECHO.C */
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandEcho (LPTSTR, LPTSTR);
|
|
|
|
INT CommandEchos (LPTSTR, LPTSTR);
|
|
|
|
INT CommandEchoerr (LPTSTR, LPTSTR);
|
|
|
|
INT CommandEchoserr (LPTSTR, LPTSTR);
|
1999-03-21 21:32:45 +00:00
|
|
|
|
|
|
|
|
1999-03-20 20:28:42 +00:00
|
|
|
/* Prototypes for ERROR.C */
|
|
|
|
VOID ErrorMessage (DWORD, LPTSTR, ...);
|
|
|
|
|
|
|
|
VOID error_no_pipe (VOID);
|
|
|
|
VOID error_bad_command (VOID);
|
|
|
|
VOID error_invalid_drive (VOID);
|
|
|
|
VOID error_req_param_missing (VOID);
|
|
|
|
VOID error_sfile_not_found (LPTSTR);
|
|
|
|
VOID error_file_not_found (VOID);
|
|
|
|
VOID error_path_not_found (VOID);
|
|
|
|
VOID error_too_many_parameters (LPTSTR);
|
|
|
|
VOID error_invalid_switch (TCHAR);
|
|
|
|
VOID error_invalid_parameter_format (LPTSTR);
|
|
|
|
VOID error_out_of_memory (VOID);
|
|
|
|
VOID error_syntax (LPTSTR);
|
|
|
|
|
|
|
|
VOID msg_pause (VOID);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for FILECOMP.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
#ifdef FEATURE_UNIX_FILENAME_COMPLETION
|
|
|
|
VOID CompleteFilename (LPTSTR, INT);
|
|
|
|
INT ShowCompletionMatches (LPTSTR, INT);
|
|
|
|
#endif
|
|
|
|
#ifdef FEATURE_4NT_FILENAME_COMPLETION
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for FOR.C */
|
|
|
|
INT cmd_for (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
/* Prototypes for FREE.C */
|
|
|
|
INT CommandFree (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for GOTO.C */
|
|
|
|
INT cmd_goto (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
|
|
|
/* Prototypes for HISTORY.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
#ifdef FEATURE_HISTORY
|
1999-12-09 19:20:47 +00:00
|
|
|
VOID History (INT, LPTSTR);/*add entries browse history*/
|
|
|
|
VOID History_move_to_bottom(VOID);/*F3*/
|
1999-12-06 19:26:49 +00:00
|
|
|
VOID InitHistory(VOID);
|
1999-12-07 18:17:17 +00:00
|
|
|
VOID CleanHistory(VOID);
|
1999-12-09 19:20:47 +00:00
|
|
|
VOID History_del_current_entry(LPTSTR str);/*CTRL-D*/
|
2000-02-01 18:29:11 +00:00
|
|
|
INT CommandHistory (LPTSTR cmd, LPTSTR param);
|
1999-03-20 20:28:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for INTERNAL.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
VOID InitLastPath (VOID);
|
|
|
|
VOID FreeLastPath (VOID);
|
1999-03-21 21:32:45 +00:00
|
|
|
INT cmd_chdir (LPTSTR, LPTSTR);
|
|
|
|
INT cmd_mkdir (LPTSTR, LPTSTR);
|
|
|
|
INT cmd_rmdir (LPTSTR, LPTSTR);
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandExit (LPTSTR, LPTSTR);
|
|
|
|
INT CommandRem (LPTSTR, LPTSTR);
|
|
|
|
INT CommandShowCommands (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for LABEL.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_label (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for LOCALE.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
extern TCHAR cDateSeparator;
|
|
|
|
extern INT nDateFormat;
|
|
|
|
extern TCHAR cTimeSeparator;
|
|
|
|
extern INT nTimeFormat;
|
|
|
|
extern TCHAR aszDayNames[7][8];
|
|
|
|
extern TCHAR cThousandSeparator;
|
|
|
|
extern TCHAR cDecimalSeparator;
|
|
|
|
extern INT nNumberGroups;
|
|
|
|
|
|
|
|
VOID InitLocale (VOID);
|
1999-08-29 22:31:43 +00:00
|
|
|
VOID PrintDate (VOID);
|
|
|
|
VOID PrintTime (VOID);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
/* Prototypes for MEMORY.C */
|
|
|
|
INT CommandMemory (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-20 20:28:42 +00:00
|
|
|
/* Prototypes for MISC.C */
|
|
|
|
TCHAR cgetchar (VOID);
|
|
|
|
BOOL CheckCtrlBreak (INT);
|
|
|
|
LPTSTR *split (LPTSTR, LPINT);
|
|
|
|
VOID freep (LPTSTR *);
|
|
|
|
LPTSTR stpcpy (LPTSTR, LPTSTR);
|
|
|
|
BOOL IsValidPathName (LPCTSTR);
|
|
|
|
BOOL IsValidFileName (LPCTSTR);
|
1999-03-21 21:32:45 +00:00
|
|
|
BOOL IsValidDirectory (LPCTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
BOOL FileGetString (HANDLE, LPTSTR, INT);
|
1999-09-24 22:03:11 +00:00
|
|
|
#ifndef __REACTOS__
|
|
|
|
HWND GetConsoleWindow(VOID);
|
|
|
|
#endif
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-12-15 00:50:41 +00:00
|
|
|
#define PROMPT_NO 0
|
|
|
|
#define PROMPT_YES 1
|
|
|
|
#define PROMPT_ALL 2
|
|
|
|
#define PROMPT_BREAK 3
|
|
|
|
|
|
|
|
INT PagePrompt (VOID);
|
|
|
|
INT FilePromptYN (LPTSTR, ...);
|
|
|
|
INT FilePromptYNA (LPTSTR, ...);
|
|
|
|
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for MOVE.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_move (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-08-29 22:31:43 +00:00
|
|
|
/* Prototypes for MSGBOX.C */
|
|
|
|
INT CommandMsgbox (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes from PATH.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_path (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes from PROMPT.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
VOID PrintPrompt (VOID);
|
|
|
|
INT cmd_prompt (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for REDIR.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
#define INPUT_REDIRECTION 1
|
|
|
|
#define OUTPUT_REDIRECTION 2
|
|
|
|
#define OUTPUT_APPEND 4
|
|
|
|
#define ERROR_REDIRECTION 8
|
|
|
|
#define ERROR_APPEND 16
|
|
|
|
INT GetRedirection (LPTSTR, LPTSTR, LPTSTR, LPTSTR, LPINT);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for REN.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_rename (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-09-12 18:23:31 +00:00
|
|
|
/* Prototypes for SCREEN.C */
|
|
|
|
INT CommandScreen (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for SET.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_set (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-07-24 17:18:05 +00:00
|
|
|
/* Prototypes for START.C */
|
|
|
|
INT cmd_start (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-11-04 11:29:36 +00:00
|
|
|
/* Prototypes for STRTOCLR.C */
|
|
|
|
BOOL StringToColor (LPWORD, LPTSTR *);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for TIME.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_time (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-08-29 22:31:43 +00:00
|
|
|
/* Prototypes for TIMER.C */
|
|
|
|
INT CommandTimer (LPTSTR cmd, LPTSTR param);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for TITLE.C */
|
|
|
|
INT cmd_title (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
|
|
|
/* Prototypes for TYPE.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_type (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for VER.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
VOID ShortVersion (VOID);
|
|
|
|
INT cmd_ver (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for VERIFY.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_verify (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for VOL.C */
|
1999-03-20 20:28:42 +00:00
|
|
|
INT cmd_vol (LPTSTR, LPTSTR);
|
|
|
|
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
/* Prototypes for WHERE.C */
|
|
|
|
BOOL SearchForExecutable (LPCTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
1999-09-24 22:03:11 +00:00
|
|
|
/* Prototypes for WINDOW.C */
|
1999-10-03 22:20:33 +00:00
|
|
|
INT CommandActivate (LPTSTR, LPTSTR);
|
1999-09-24 22:03:11 +00:00
|
|
|
INT CommandWindow (LPTSTR, LPTSTR);
|
1999-03-20 20:28:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* The MSDOS Batch Commands [MS-DOS 5.0 User's Guide and Reference p359] */
|
|
|
|
int cmd_if(char *, char *);
|
|
|
|
int cmd_pause(char *, char *);
|
|
|
|
int cmd_shift(char *, char *);
|
|
|
|
|
1999-03-21 21:32:45 +00:00
|
|
|
#endif /* _CMD_H_INCLUDED_ */
|