diff --git a/reactos/base/shell/cmd/cmd.c b/reactos/base/shell/cmd/cmd.c index 2dc8604a229..f2b9243f775 100644 --- a/reactos/base/shell/cmd/cmd.c +++ b/reactos/base/shell/cmd/cmd.c @@ -1608,6 +1608,33 @@ ShowCommands (VOID) } #endif +static VOID +ExecuteAutoRunFile (VOID) +{ + TCHAR autorun[MAX_PATH]; + DWORD len = MAX_PATH; + HKEY hkey; + + if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, + _T("SOFTWARE\\Microsoft\\Command Processor"), + 0, + KEY_READ, + &hkey ) == ERROR_SUCCESS) + { + if(RegQueryValueEx(hkey, + _T("AutoRun"), + 0, + 0, + (LPBYTE)autorun, + &len) == ERROR_SUCCESS) + { + ParseCommandLine (autorun); + } + } + + RegCloseKey(hkey); +} + /* * set up global initializations and process parameters * @@ -1760,16 +1787,17 @@ Initialize (int argc, const TCHAR* argv[]) #endif } } + else + { + /* Display a simple version string */ + ConOutPrintf(_T("ReactOS Operating System [Version %s-%s]\n"), + _T(KERNEL_RELEASE_STR), + _T(KERNEL_VERSION_BUILD_STR)); - /* run cmdstart.bat */ - if (IsExistingFile (_T("cmdstart.bat"))) - { - ParseCommandLine (_T("cmdstart.bat")); - } - else if (IsExistingFile (_T("\\cmdstart.bat"))) - { - ParseCommandLine (_T("\\cmdstart.bat")); - } + ConOutPuts (_T("(C) Copyright 1998-2008 ReactOS Team.\n")); + } + + ExecuteAutoRunFile (); #ifdef FEATURE_DIR_STACK /* initialize directory stack */ diff --git a/reactos/base/shell/cmd/cmd.rbuild b/reactos/base/shell/cmd/cmd.rbuild index ef0537df0f6..8044a09cf00 100644 --- a/reactos/base/shell/cmd/cmd.rbuild +++ b/reactos/base/shell/cmd/cmd.rbuild @@ -1,84 +1,84 @@ - - include/reactos/wine - . - - 0x0501 - - - - precomp.h - - alias.c - attrib.c - batch.c - beep.c - call.c - chcp.c - choice.c - cls.c - cmd.c - cmddbg.c - cmdinput.c - cmdtable.c - color.c - console.c - copy.c - date.c - del.c - delay.c - dir.c - dirstack.c - echo.c - error.c - filecomp.c - for.c - free.c - goto.c - history.c - if.c - internal.c - label.c - locale.c - memory.c - misc.c - move.c - msgbox.c - path.c - pause.c - prompt.c - redir.c - ren.c - replace.c - screen.c - set.c - shift.c - start.c - strtoclr.c - time.c - timer.c - title.c - type.c - ver.c - verify.c - vol.c - where.c - window.c - - - - include/reactos/wine - . - - 0x0501 - cmd_base - kernel32 - advapi32 - shell32 - user32 - cmd.rc - main.c - + + include/reactos/wine + . + + 0x0501 + + + + precomp.h + + alias.c + attrib.c + batch.c + beep.c + call.c + chcp.c + choice.c + cls.c + cmd.c + cmddbg.c + cmdinput.c + cmdtable.c + color.c + console.c + copy.c + date.c + del.c + delay.c + dir.c + dirstack.c + echo.c + error.c + filecomp.c + for.c + free.c + goto.c + history.c + if.c + internal.c + label.c + locale.c + memory.c + misc.c + move.c + msgbox.c + path.c + pause.c + prompt.c + redir.c + ren.c + replace.c + screen.c + set.c + shift.c + start.c + strtoclr.c + time.c + timer.c + title.c + type.c + ver.c + verify.c + vol.c + where.c + window.c + + + + include/reactos/wine + . + + 0x0501 + cmd_base + kernel32 + advapi32 + shell32 + user32 + cmd.rc + main.c + diff --git a/reactos/boot/bootdata/hivesft.inf b/reactos/boot/bootdata/hivesft.inf index c6077f228fd..5c2996d6c8e 100644 --- a/reactos/boot/bootdata/hivesft.inf +++ b/reactos/boot/bootdata/hivesft.inf @@ -8,6 +8,9 @@ HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",,0x00000 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders",,0x00000012 HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce",,0x00000012 +; CMD Settings +HKLM,"SOFTWARE\Microsoft\Command Processor","AutoRun",0x00020000,"" + ; Uninstall Application list HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall",,0x00000010