code: private static String getWindowsUserShell()
      {
          if( null != m_SHELL )
          {
              return m_SHELL;
          }
  
          if( -1 != OSNAME.indexOf( "98" )
              || -1 != OSNAME.indexOf( "95" )
              || -1 != OSNAME.indexOf( "Me" ) )
          {
              m_SHELL = "command.com";
              return m_SHELL;
          }
  
          m_SHELL = "cmd.exe";
          return m_SHELL;
      }
docs: Gets the shell used by the Windows user.
  
  @return the shell: cmd.exe or command.com.