Commit 16d5f457 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

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

parent 7cd8dc6b
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 診断ツール"
......
......@@ -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 "다이렉트엑스 진단 도구"
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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"
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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"
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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 ""
......
......@@ -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 診斷工具"
......
......@@ -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"
}
......@@ -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
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment