Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
582 B

  1. /*
  2. * cmd.c - Main Module of Command.lib
  3. *
  4. * Sudeepb 09-Apr-1991 Craeted
  5. */
  6. #include "cmd.h"
  7. #include "cmdsvc.h"
  8. /* CmdInit - COmmand Initialiazation routine.
  9. *
  10. * Entry
  11. * argc,argv - from softpc as it is.
  12. * Full path name of the dos binary is preceded with
  13. * -a or /a. i.e. -a c:\nt\bin86\kernel.exe reversi.exe
  14. *
  15. *
  16. * Exit
  17. *
  18. */
  19. BOOL CMDInit (argc,argv)
  20. INT argc;
  21. PSZ *argv;
  22. {
  23. CHAR RootDir [MAX_PATH];
  24. UINT Len;
  25. Len = GetSystemDirectory (RootDir,MAX_PATH);
  26. if (Len <= MAX_PATH && Len > 0)
  27. cmdHomeDirectory[0] = RootDir[0];
  28. return TRUE;
  29. }