mirror of
https://github.com/reactos/reactos.git
synced 2025-04-26 08:30:21 +00:00
When searching for a file to execute, if you fail to find it using the first part of the input, try to use the full line input. problem is really only seen when doing "start foo.bat".
svn path=/trunk/; revision=17876
This commit is contained in:
parent
3d2d6eff0b
commit
ea5a3afa86
1 changed files with 9 additions and 7 deletions
|
@ -419,9 +419,10 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest)
|
|||
/* get the PATH environment variable and parse it */
|
||||
/* search the PATH environment variable for the binary */
|
||||
if (!SearchForExecutable (first, szFullName))
|
||||
{
|
||||
if (!SearchForExecutable (full, szFullName))
|
||||
{
|
||||
error_bad_command ();
|
||||
|
||||
free (first);
|
||||
free (rest);
|
||||
free (full);
|
||||
|
@ -429,6 +430,8 @@ Execute (LPTSTR Full, LPTSTR First, LPTSTR Rest)
|
|||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
GetConsoleTitle (szWindowTitle, MAX_PATH);
|
||||
|
||||
/* check if this is a .BAT or .CMD file */
|
||||
|
@ -539,7 +542,6 @@ DoCommand (LPTSTR line)
|
|||
INT cl;
|
||||
LPCOMMAND cmdptr;
|
||||
|
||||
|
||||
#ifdef _DEBUG
|
||||
DebugPrintf (_T("DoCommand: (\'%s\')\n"), line);
|
||||
#endif /* DEBUG */
|
||||
|
|
Loading…
Reference in a new issue