diff --git a/reactos/subsys/system/cmd/cmd.c b/reactos/subsys/system/cmd/cmd.c index 0579e3d701e..ba38644dd7c 100644 --- a/reactos/subsys/system/cmd/cmd.c +++ b/reactos/subsys/system/cmd/cmd.c @@ -1648,24 +1648,6 @@ Initialize (int argc, TCHAR* argv[]) { ParseCommandLine (_T("\\cmdstart.bat")); } -#ifndef __REACTOS__ - else - { - /* try to run cmdstart.bat from install dir */ - LPTSTR p; - - _tcscpy (commandline, argv[0]); - p = _tcsrchr (commandline, _T('\\')) + 1; - _tcscpy (p, _T("cmdstart.bat")); - - if (IsExistingFile (_T("commandline"))) - { - LoadString(CMD_ModuleHandle, STRING_CMD_ERROR4, szMsg, RC_STRING_MAX_SIZE); - ConErrPrintf(szMsg, commandline); - ParseCommandLine (commandline); - } - } -#endif #ifdef FEATURE_DIR_STACK /* initialize directory stack */ @@ -1692,10 +1674,6 @@ Initialize (int argc, TCHAR* argv[]) static VOID Cleanup (int argc, TCHAR *argv[]) { -#ifndef __REACTOS__ - TCHAR szMsg[RC_STRING_MAX_SIZE]; -#endif - /* run cmdexit.bat */ if (IsExistingFile (_T("cmdexit.bat"))) { @@ -1708,25 +1686,6 @@ static VOID Cleanup (int argc, TCHAR *argv[]) ConErrResPuts (STRING_CMD_ERROR5); ParseCommandLine (_T("\\cmdexit.bat")); } -#ifndef __REACTOS__ - else - { - /* try to run cmdexit.bat from install dir */ - TCHAR commandline[CMDLINE_LENGTH]; - LPTSTR p; - - _tcscpy (commandline, argv[0]); - p = _tcsrchr (commandline, _T('\\')) + 1; - _tcscpy (p, _T("cmdexit.bat")); - - if (IsExistingFile (_T("commandline"))) - { - LoadString(CMD_ModuleHandle, STRING_CMD_ERROR4, szMsg, RC_STRING_MAX_SIZE); - ConErrPrintf(szMsg, commandline); - ParseCommandLine (commandline); - } - } -#endif #ifdef FEATURE_ALIASES DestroyAlias (); diff --git a/reactos/subsys/system/cmd/config.h b/reactos/subsys/system/cmd/config.h index 47dac6c3a7e..bd59a55d261 100644 --- a/reactos/subsys/system/cmd/config.h +++ b/reactos/subsys/system/cmd/config.h @@ -15,15 +15,10 @@ #ifndef _CONFIG_H_INCLUDED_ #define _CONFIG_H_INCLUDED_ - -#ifndef __REACTOS__ -#define WIN32_LEAN_AND_MEAN -#endif /* __REACTOS__ */ - - /* Define to enable debugging code */ //#define _DEBUG +#define WIN32_LEAN_AND_MEAN /* Define to enable the alias command, and aliases.*/ #define FEATURE_ALIASES