/* runemacs --- Simple program to start Emacs with its console window hidden.
-Copyright (C) 2001-2012 Free Software Foundation, Inc.
+Copyright (C) 2001-2014 Free Software Foundation, Inc.
This file is part of GNU Emacs.
/* Quote executable name in case of spaces in the path. */
*new_cmdline = '"';
strcpy (new_cmdline + 1, modname);
+ /* Detect and handle un-installed runemacs.exe in nt/ subdirectory,
+ while emacs.exe is in src/. */
+ if ((p = strrchr (new_cmdline, '\\')) != NULL
+ && stricmp (p, "\\nt") == 0)
+ strcpy (p, "\\src");
#ifdef CHOOSE_NEWEST_EXE
{