cmd: Display a clearer error message for not found commands.

This commit is contained in:
Frédéric Delanoy 2012-10-26 13:47:52 +02:00 committed by Alexandre Julliard
parent 7cd8dc6bf2
commit 16d5f457e2
48 changed files with 230 additions and 2 deletions

View File

@ -9718,6 +9718,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9856,6 +9856,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10187,6 +10187,11 @@ msgstr " (Sí|No)"
msgid " (Yes|No|All)"
msgstr " (Sí|No|Tots)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Eina Diagnòstica de DirextX"

View File

@ -10216,6 +10216,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10101,6 +10101,11 @@ msgstr " (Ja|Nej)"
msgid " (Yes|No|All)"
msgstr " (Ja|Nej|Alle)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX diagnostiskværktøj"

View File

@ -10150,6 +10150,11 @@ msgstr " (Ja|Nein)"
msgid " (Yes|No|All)"
msgstr " (Ja|Nein|Alle)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX Diagnosewerkzeug"

View File

@ -9711,6 +9711,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10072,6 +10072,12 @@ msgstr " (Yes|No)"
msgid " (Yes|No|All)"
msgstr " (Yes|No|All)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
"Can't recognise '%1' as an internal or external command, or batch script.\n"
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX Diagnostic Tool"

View File

@ -10076,6 +10076,12 @@ msgstr " (Yes|No)"
msgid " (Yes|No|All)"
msgstr " (Yes|No|All)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX Diagnostic Tool"

View File

@ -9575,6 +9575,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10184,6 +10184,11 @@ msgstr " (Sí|No)"
msgid " (Yes|No|All)"
msgstr " (Sí|No|Todo)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Utilidad de Diagnóstico de DirectX"

View File

@ -9719,6 +9719,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10059,6 +10059,11 @@ msgstr " (Kyllä|Ei)"
msgid " (Yes|No|All)"
msgstr " (Kyllä|Ei|kAikki)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX-diagnostiikkatyökalu"

View File

@ -10191,6 +10191,11 @@ msgstr " (Oui|Non)"
msgid " (Yes|No|All)"
msgstr " (Oui|Non|Tous)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Outil de diagnostic DirectX"

View File

@ -10152,6 +10152,11 @@ msgstr " (Yes|No)"
msgid " (Yes|No|All)"
msgstr " (Yes|No|All)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "כלי ניתוח ה־DirectX"

View File

@ -9571,6 +9571,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10103,6 +10103,11 @@ msgstr " (Igen|Nem)"
msgid " (Yes|No|All)"
msgstr " (Igen|Nem|Mind)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX diagnosztikai eszköz"

View File

@ -10182,6 +10182,11 @@ msgstr " (Sì|No)"
msgid " (Yes|No|All)"
msgstr " (Sì|No|Tutti)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Strumento di Diagnostica DirectX"

View File

@ -10071,6 +10071,11 @@ msgstr " (Yes|No)"
msgid " (Yes|No|All)"
msgstr " (Yes|No|All)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX 診断ツール"

View File

@ -10039,6 +10039,11 @@ msgstr "(예|아니오)"
msgid " (Yes|No|All)"
msgstr "(예|아니오|모두)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "다이렉트엑스 진단 도구"

View File

@ -10096,6 +10096,11 @@ msgstr " (Taip|Ne)"
msgid " (Yes|No|All)"
msgstr " (Taip|Ne|Visus)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX diagnostikos įrankis"

View File

@ -9571,6 +9571,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10324,6 +10324,11 @@ msgstr " (Ja|Nei)"
msgid " (Yes|No|All)"
msgstr " (Ja|Nei|Alle)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10240,6 +10240,11 @@ msgstr "%1? (Ja|Nee)\n"
msgid " (Yes|No|All)"
msgstr "%1? (Ja|Nee)\n"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Diagnostisch instrument voor DirectX"

View File

@ -9571,6 +9571,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9571,6 +9571,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10129,6 +10129,11 @@ msgstr " (Tak|Nie)"
msgid " (Yes|No|All)"
msgstr " (Tak|Nie|Wszystkie)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Narzędzie diagnostyki DirectX"

View File

@ -10099,6 +10099,11 @@ msgstr " (Sim|Não)"
msgid " (Yes|No|All)"
msgstr " (Sim|Não|Tudo)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Ferramenta de Diagnóstico do DirectX"

View File

@ -10110,6 +10110,11 @@ msgstr " (Sim|Não)"
msgid " (Yes|No|All)"
msgstr " (Sim|Não|Todos)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Ferramenta de Diagnóstico do DirectX"

View File

@ -9632,6 +9632,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10306,6 +10306,11 @@ msgstr " (Da|Nu)"
msgid " (Yes|No|All)"
msgstr " (Da|Nu|Toate)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10062,6 +10062,11 @@ msgstr " (Y - да|N - нет)"
msgid " (Yes|No|All)"
msgstr " (Y - да|N - нет|A - все)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Утилита диагностики DirectX"

View File

@ -9714,6 +9714,11 @@ msgstr " (Áno|Nie)"
msgid " (Yes|No|All)"
msgstr " (Áno|Nie|Všetky)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10129,6 +10129,11 @@ msgstr " (Da|Ne)"
msgid " (Yes|No|All)"
msgstr " (Da|Ne|Vse)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Orodje za diagnostiko DirectX"

View File

@ -10049,6 +10049,11 @@ msgstr "%s? (Да|Не)\n"
msgid " (Yes|No|All)"
msgstr "%s? (Да|Не)\n"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10149,6 +10149,11 @@ msgstr "%s? (Da|Ne)\n"
msgid " (Yes|No|All)"
msgstr "%s? (Da|Ne)\n"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9978,6 +9978,11 @@ msgstr " (Ja|Nej)"
msgid " (Yes|No|All)"
msgstr " (Ja|Nej|Alla)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9571,6 +9571,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9736,6 +9736,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9850,6 +9850,11 @@ msgstr " (Evet|Hayır)"
msgid " (Yes|No|All)"
msgstr " (Evet|Hayır|Tümü)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -10112,6 +10112,11 @@ msgstr " (Так|Ні)"
msgid " (Yes|No|All)"
msgstr " (Так|Ні|Всі)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "Утиліта Діагностики DirectX"

View File

@ -9676,6 +9676,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9516,6 +9516,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9633,6 +9633,11 @@ msgstr ""
msgid " (Yes|No|All)"
msgstr ""
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr ""

View File

@ -9925,6 +9925,11 @@ msgstr " (是|否)"
msgid " (Yes|No|All)"
msgstr " (是|否|全部)"
#: cmd.rc:356
msgid ""
"Can't recognize '%1' as an internal or external command, or batch script.\n"
msgstr ""
#: dxdiag.rc:27
msgid "DirectX Diagnostic Tool"
msgstr "DirectX 診斷工具"

View File

@ -353,4 +353,5 @@ Enter HELP <command> for further information on any of the above commands.\n"
WCMD_VOLUMENOLABEL, "Volume in drive %1!c! has no label.\n"
WCMD_YESNO, " (Yes|No)"
WCMD_YESNOALL, " (Yes|No|All)"
WCMD_NO_COMMAND_FOUND, "Can't recognize '%1' as an internal or external command, or batch script.\n"
}

View File

@ -286,3 +286,4 @@ extern WCHAR version_string[];
#define WCMD_VOLUMENOLABEL 1037
#define WCMD_YESNO 1038
#define WCMD_YESNOALL 1039
#define WCMD_NO_COMMAND_FOUND 1040

View File

@ -1230,8 +1230,7 @@ void WCMD_run_program (WCHAR *command, BOOL called)
}
/* Not found anywhere - give up */
SetLastError(ERROR_FILE_NOT_FOUND);
WCMD_print_error ();
WCMD_output_stderr(WCMD_LoadMessage(WCMD_NO_COMMAND_FOUND), command);
/* If a command fails to launch, it sets errorlevel 9009 - which
does not seem to have any associated constant definition */