summaryrefslogtreecommitdiffstats
path: root/private/mvdm/dos/command/cmd.c
blob: c701f8a86f332c00ef7201b4cefc0bb3d656719a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  cmd.c - Main Module of Command.lib
 *
 *  Sudeepb 09-Apr-1991 Craeted
 */

#include "cmd.h"
#include "cmdsvc.h"


/* CmdInit - COmmand Initialiazation routine.
 *
 * Entry
 *	argc,argv - from softpc as it is.
 *		    Full path name of the dos binary is preceded with
 *		    -a or /a. i.e. -a c:\nt\bin86\kernel.exe reversi.exe
 *
 *
 * Exit
 *
 */

BOOL CMDInit (argc,argv)
INT	argc;
PSZ	*argv;
{
CHAR  RootDir [MAX_PATH];
UINT  Len;

    Len = GetSystemDirectory (RootDir,MAX_PATH);
    if (Len <= MAX_PATH && Len > 0)
	cmdHomeDirectory[0] = RootDir[0];
    return TRUE;
}