https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7c175d4999fb66d86111e…
commit 7c175d4999fb66d86111e45d694f934d2735a61f
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Jul 5 23:39:06 2020 +0200
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Wed Aug 19 20:36:06 2020 +0200
[CMD] PATH, SET: Fix the returned error message when an environment variable does not
exist.
Translators, please update the translations!
---
base/shell/cmd/lang/cs-CZ.rc | 2 +-
base/shell/cmd/lang/de-DE.rc | 2 +-
base/shell/cmd/lang/el-GR.rc | 2 +-
base/shell/cmd/lang/en-US.rc | 2 +-
base/shell/cmd/lang/es-ES.rc | 2 +-
base/shell/cmd/lang/fr-FR.rc | 2 +-
base/shell/cmd/lang/hu-HU.rc | 2 +-
base/shell/cmd/lang/id-ID.rc | 2 +-
base/shell/cmd/lang/it-IT.rc | 2 +-
base/shell/cmd/lang/ja-JP.rc | 2 +-
base/shell/cmd/lang/no-NO.rc | 2 +-
base/shell/cmd/lang/pl-PL.rc | 2 +-
base/shell/cmd/lang/ro-RO.rc | 2 +-
base/shell/cmd/lang/ru-RU.rc | 2 +-
base/shell/cmd/lang/sk-SK.rc | 2 +-
base/shell/cmd/lang/sq-AL.rc | 2 +-
base/shell/cmd/lang/sv-SE.rc | 2 +-
base/shell/cmd/lang/tr-TR.rc | 2 +-
base/shell/cmd/lang/uk-UA.rc | 2 +-
base/shell/cmd/lang/zh-CN.rc | 2 +-
base/shell/cmd/lang/zh-TW.rc | 2 +-
base/shell/cmd/path.c | 2 +-
base/shell/cmd/resource.h | 2 +-
base/shell/cmd/set.c | 2 +-
24 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/base/shell/cmd/lang/cs-CZ.rc b/base/shell/cmd/lang/cs-CZ.rc
index 3499a2641a9..0f788899104 100644
--- a/base/shell/cmd/lang/cs-CZ.rc
+++ b/base/shell/cmd/lang/cs-CZ.rc
@@ -523,7 +523,7 @@ title new title\n"
STRING_ERROR_CANNOTPIPE "Chyba! Nelze vytvořit rouru! Nelze vytvořit dočasný
soubor!\n"
STRING_ERROR_D_PAUSEMSG "Pokračujte stisknutím libovolné klávesy . . . "
STRING_ERROR_DRIVER_NOT_READY "Jednotka není připravena"
- STRING_PATH_ERROR "CMD: Ne v prostředí '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Neplatný přepínač - %s\n"
STRING_REPLACE_ERROR2 "Cesta nenalezena - %s\n"
STRING_REPLACE_ERROR3 "Název souboru, adresáře nebo popisek svazku je
neplatný.\n"
diff --git a/base/shell/cmd/lang/de-DE.rc b/base/shell/cmd/lang/de-DE.rc
index 94cb49924e3..e9afa7eefb3 100644
--- a/base/shell/cmd/lang/de-DE.rc
+++ b/base/shell/cmd/lang/de-DE.rc
@@ -519,7 +519,7 @@ Titel neuer Titel"
STRING_ERROR_CANNOTPIPE "Fehler: Pipen nicht möglich! Temporäre Datei kann nicht
geöffnet werden!\n"
STRING_ERROR_D_PAUSEMSG "Drücken Sie eine beliebige Taste . . . "
STRING_ERROR_DRIVER_NOT_READY "Laufwerk ist nicht bereit"
- STRING_PATH_ERROR "CMD: Nicht in Umgebung '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Ungültiger Parameter - %s\n"
STRING_REPLACE_ERROR2 "Pfad wurde nicht gefunden - %s\n"
STRING_REPLACE_ERROR3 "Der Dateiname, Ordnername oder die Syntax der
Volumenbezeichung sind inkorrekt.\n"
diff --git a/base/shell/cmd/lang/el-GR.rc b/base/shell/cmd/lang/el-GR.rc
index 10a48f409e1..1714f763af1 100644
--- a/base/shell/cmd/lang/el-GR.rc
+++ b/base/shell/cmd/lang/el-GR.rc
@@ -522,7 +522,7 @@ title new title\n"
STRING_ERROR_CANNOTPIPE "Σφάλμα! Cannot pipe! Cannot open temporary
file!\n"
STRING_ERROR_D_PAUSEMSG "Πατήστε οποιοδήποτε πλήκτρο για συνέχεια . . . "
STRING_ERROR_DRIVER_NOT_READY "Ο δίσκος δεν είναι έτοιμος"
- STRING_PATH_ERROR "CMD: Not in environment '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Invalid switch - %s\n"
STRING_REPLACE_ERROR2 "Δε βρέθηκε το μονοπάτι - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/en-US.rc b/base/shell/cmd/lang/en-US.rc
index e5d0ea5056a..2286203a633 100644
--- a/base/shell/cmd/lang/en-US.rc
+++ b/base/shell/cmd/lang/en-US.rc
@@ -518,7 +518,7 @@ title new title\n"
STRING_ERROR_CANNOTPIPE "Error! Cannot pipe! Cannot open temporary
file!\n"
STRING_ERROR_D_PAUSEMSG "Press any key to continue . . . "
STRING_ERROR_DRIVER_NOT_READY "Drive not ready"
- STRING_PATH_ERROR "CMD: Not in environment '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Invalid switch - %s\n"
STRING_REPLACE_ERROR2 "Path not found - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/es-ES.rc b/base/shell/cmd/lang/es-ES.rc
index 786b5f7e974..cf18bec6044 100644
--- a/base/shell/cmd/lang/es-ES.rc
+++ b/base/shell/cmd/lang/es-ES.rc
@@ -524,7 +524,7 @@ title Nuevo título\n"
STRING_ERROR_CANNOTPIPE "¡Error! ¡No se puede apilar! ¡No se puede abrir el
archivo temporal!\n"
STRING_ERROR_D_PAUSEMSG "Pulse una tecla para continuar ... "
STRING_ERROR_DRIVER_NOT_READY "La unidad no está lista"
- STRING_PATH_ERROR "CMD: No está en el entorno '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Argumento no válido - %s\n"
STRING_REPLACE_ERROR2 "Ruta no encontrada - %s\n"
STRING_REPLACE_ERROR3 "La sintaxis del nombre de archivo, carpeta o volúmen es
incorrecta.\n"
diff --git a/base/shell/cmd/lang/fr-FR.rc b/base/shell/cmd/lang/fr-FR.rc
index 7a681fdf5b3..92a32cf1fa2 100644
--- a/base/shell/cmd/lang/fr-FR.rc
+++ b/base/shell/cmd/lang/fr-FR.rc
@@ -534,7 +534,7 @@ titre titre de la fenêtre"
STRING_ERROR_CANNOTPIPE "Erreur ! Impossible de chaîner ! Échec à
l'ouverture du fichier temporaire!\n"
STRING_ERROR_D_PAUSEMSG "Appuyez sur une touche pour continuer . . . "
STRING_ERROR_DRIVER_NOT_READY "Lecteur non prêt"
- STRING_PATH_ERROR "CMD : Pas dans l'environnement '%s'\n"
+ STRING_SET_ENV_ERROR "Variable d'environnement '%s' non
définie\n"
STRING_REPLACE_ERROR1 "Commutateur invalide - %s\n"
STRING_REPLACE_ERROR2 "Chemin introuvable - %s\n"
STRING_REPLACE_ERROR3 "La syntaxe du nom de fichier, du répertoire, ou du nom de
volume est incorrecte.\n"
diff --git a/base/shell/cmd/lang/hu-HU.rc b/base/shell/cmd/lang/hu-HU.rc
index d73faa7c2cc..003cf0d6c96 100644
--- a/base/shell/cmd/lang/hu-HU.rc
+++ b/base/shell/cmd/lang/hu-HU.rc
@@ -503,7 +503,7 @@ title new title\n"
STRING_ERROR_CANNOTPIPE "Error! Cannot pipe! Cannot open temporary
állomány!\n"
STRING_ERROR_D_PAUSEMSG "A folytatáshoz nyomj meg egy billentyût . . . "
STRING_ERROR_DRIVER_NOT_READY "A meghajtó nem áll készen"
- STRING_PATH_ERROR "CMD: Not in environment '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Invalid switch - %s\n"
STRING_REPLACE_ERROR2 "Path not found - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/id-ID.rc b/base/shell/cmd/lang/id-ID.rc
index 2f7ce290d59..befdb9a16a2 100644
--- a/base/shell/cmd/lang/id-ID.rc
+++ b/base/shell/cmd/lang/id-ID.rc
@@ -517,7 +517,7 @@ title judul baru\n"
STRING_ERROR_CANNOTPIPE "Salah! Tidak bisa melakukan pipe! Tidak bisa membuka
file temporal!\n"
STRING_ERROR_D_PAUSEMSG "Tekan tombol untuk melanjutkan . . . "
STRING_ERROR_DRIVER_NOT_READY "Drive tidak siap"
- STRING_PATH_ERROR "CMD: Tidak dalam lingkungan '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Invalid switch - %s\n"
STRING_REPLACE_ERROR2 "Path not found - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/it-IT.rc b/base/shell/cmd/lang/it-IT.rc
index e3485640449..e02ad50cbd0 100644
--- a/base/shell/cmd/lang/it-IT.rc
+++ b/base/shell/cmd/lang/it-IT.rc
@@ -527,7 +527,7 @@ titolo il nuovo titolo\n"
STRING_ERROR_CANNOTPIPE "Errore! Impossibile ridirigere! Impossibile aprire un
file temporaneo!\n"
STRING_ERROR_D_PAUSEMSG "Premi un tasto per continuare . . . "
STRING_ERROR_DRIVER_NOT_READY "Disco non pronto"
- STRING_PATH_ERROR "CMD: Non nell'ambiente '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Parametro non valido - %s\n"
STRING_REPLACE_ERROR2 "Percorso non trovato - %s\n"
STRING_REPLACE_ERROR3 "Il nome del file, della cartella o della etichetta di
volume è errato.\n"
diff --git a/base/shell/cmd/lang/ja-JP.rc b/base/shell/cmd/lang/ja-JP.rc
index a0581742431..3bd1a7ea396 100644
--- a/base/shell/cmd/lang/ja-JP.rc
+++ b/base/shell/cmd/lang/ja-JP.rc
@@ -525,7 +525,7 @@ RESTORE ウィンドウを元のサイズに戻します。\n\
STRING_ERROR_CANNOTPIPE "エラー! パイプできません! 一時ファイルを開けません!\n"
STRING_ERROR_D_PAUSEMSG "続行するには何かキーを押してください . . . "
STRING_ERROR_DRIVER_NOT_READY "ドライブの準備ができていません。"
- STRING_PATH_ERROR "CMD: Not in environment '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Invalid switch - %s\n"
STRING_REPLACE_ERROR2 "Path not found - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/no-NO.rc b/base/shell/cmd/lang/no-NO.rc
index 7cb1bb65431..c8577d88c55 100644
--- a/base/shell/cmd/lang/no-NO.rc
+++ b/base/shell/cmd/lang/no-NO.rc
@@ -516,7 +516,7 @@ tittel ny tittel\n"
STRING_ERROR_CANNOTPIPE "Feil! Kan ikke bruke datakanal! Kan ikke åpne
midlertidig fil!\n"
STRING_ERROR_D_PAUSEMSG "Trykk en tast for å fortsette . . . "
STRING_ERROR_DRIVER_NOT_READY "Stasjonen er ikke klar"
- STRING_PATH_ERROR "CMD: Ikke i miljøet '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Invalid switch - %s\n"
STRING_REPLACE_ERROR2 "Mappen ble ikke funnet - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/pl-PL.rc b/base/shell/cmd/lang/pl-PL.rc
index 49d89386170..626696c546b 100644
--- a/base/shell/cmd/lang/pl-PL.rc
+++ b/base/shell/cmd/lang/pl-PL.rc
@@ -523,7 +523,7 @@ title nowy tytuł okna\n"
STRING_ERROR_CANNOTPIPE "Błąd potoków! Nie można otworzyć pliku
tymczasowego.\n"
STRING_ERROR_D_PAUSEMSG "Naciśnij dowolny klawisz, aby kontynuować . . . "
STRING_ERROR_DRIVER_NOT_READY "Napęd nie jest gotowy"
- STRING_PATH_ERROR "CMD: Poza środowiskiem '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Nieprawidłowy parametr - %s\n"
STRING_REPLACE_ERROR2 "Ścieżka nie została odnaleziona - %s\n"
STRING_REPLACE_ERROR3 "Nazwa pliku, katalogu lub napędu nie jest
prawidłowa.\n"
diff --git a/base/shell/cmd/lang/ro-RO.rc b/base/shell/cmd/lang/ro-RO.rc
index a9349427dc8..2013f65d8d8 100644
--- a/base/shell/cmd/lang/ro-RO.rc
+++ b/base/shell/cmd/lang/ro-RO.rc
@@ -551,7 +551,7 @@ titlu Noul titlu.\n"
STRING_ERROR_CANNOTPIPE "Eroare! Nu datele nu pot fi canalizate! Nu fișierul
temporar nu a putut fi deschis!\n"
STRING_ERROR_D_PAUSEMSG "Tastați pentru a continua... "
STRING_ERROR_DRIVER_NOT_READY "Unitatea de stocare nu e utilizabilă"
- STRING_PATH_ERROR "CMD: «%s» inexistentă în mediu\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Argument eronat - %s\n"
STRING_REPLACE_ERROR2 "Calea nu este găsită - %s\n"
STRING_REPLACE_ERROR3 "Numele fișierului, directorului sau eticheta volumului
este incorectă.\n"
diff --git a/base/shell/cmd/lang/ru-RU.rc b/base/shell/cmd/lang/ru-RU.rc
index 64c217e547d..554b7e028ef 100644
--- a/base/shell/cmd/lang/ru-RU.rc
+++ b/base/shell/cmd/lang/ru-RU.rc
@@ -528,7 +528,7 @@ RESTORE восстанавливает окно\n\
STRING_ERROR_CANNOTPIPE "Ошибка! Невозможно использовать pipe! Невозможно
создать временный файл!\n"
STRING_ERROR_D_PAUSEMSG "Для продолжения нажмите любую клавишу . . . "
STRING_ERROR_DRIVER_NOT_READY "Устройство не готово"
- STRING_PATH_ERROR "CMD: Не в среде окружения '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Неверный ключ - %s\n"
STRING_REPLACE_ERROR2 "Путь не найден - %s\n"
STRING_REPLACE_ERROR3 "Имя файла, папки или метка диска неверная.\n"
diff --git a/base/shell/cmd/lang/sk-SK.rc b/base/shell/cmd/lang/sk-SK.rc
index 3bb33e7c01a..c0a5673bd44 100644
--- a/base/shell/cmd/lang/sk-SK.rc
+++ b/base/shell/cmd/lang/sk-SK.rc
@@ -524,7 +524,7 @@ title new title\n"
STRING_ERROR_CANNOTPIPE "Chyba! Cannot pipe! Cannot open temporary
file!\n"
STRING_ERROR_D_PAUSEMSG "Pokračujte stlačením ľubovoľného klávesu ... "
STRING_ERROR_DRIVER_NOT_READY "Jednotka nie je pripravená"
- STRING_PATH_ERROR "CMD: Not in environment '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Neplatný prepínač - %s\n"
STRING_REPLACE_ERROR2 "Cesta sa nenašla - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/sq-AL.rc b/base/shell/cmd/lang/sq-AL.rc
index f31217025f0..42e2d5736f5 100644
--- a/base/shell/cmd/lang/sq-AL.rc
+++ b/base/shell/cmd/lang/sq-AL.rc
@@ -522,7 +522,7 @@ title titull i ri\n"
STRING_ERROR_CANNOTPIPE "Error! Nuk mund të pipoj! Nuk mund të hape dokumentet
e perkohshem!\n"
STRING_ERROR_D_PAUSEMSG "Shtypni një buton për të vazhduar . . . "
STRING_ERROR_DRIVER_NOT_READY "Drive nuk është gati"
- STRING_PATH_ERROR "CMD: Jo në mjedis '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Qeles invalid - %s\n"
STRING_REPLACE_ERROR2 "Rruga nuk u gjet - %s\n"
STRING_REPLACE_ERROR3 "Dokumenti, emri i direktorise, ose syntaksi i etiketes
volumetrike eshte gabim.\n"
diff --git a/base/shell/cmd/lang/sv-SE.rc b/base/shell/cmd/lang/sv-SE.rc
index 41c5131f015..b9d857299f5 100644
--- a/base/shell/cmd/lang/sv-SE.rc
+++ b/base/shell/cmd/lang/sv-SE.rc
@@ -516,7 +516,7 @@ tittel ny tittel\n"
STRING_ERROR_CANNOTPIPE "Fel! Kan inte bruke datakanal! Kan inte åpne
midlertidig fil!\n"
STRING_ERROR_D_PAUSEMSG "Tryck på valfri tangent för att fortsätta . . . "
STRING_ERROR_DRIVER_NOT_READY "enheten är inte klar"
- STRING_PATH_ERROR "CMD: Inte i miljön '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Felaktig växel - %s\n"
STRING_REPLACE_ERROR2 "Mappen ble inte funnet - %s\n"
STRING_REPLACE_ERROR3 "The filename, directory name, or volume label syntax is
incorrect.\n"
diff --git a/base/shell/cmd/lang/tr-TR.rc b/base/shell/cmd/lang/tr-TR.rc
index 44810d8fef2..326bc16e907 100644
--- a/base/shell/cmd/lang/tr-TR.rc
+++ b/base/shell/cmd/lang/tr-TR.rc
@@ -523,7 +523,7 @@ başlık Yeni başlık\n"
STRING_ERROR_CANNOTPIPE "Yanlışlık! Borulanamıyor! Geçici kütük
açılamıyor!\n"
STRING_ERROR_D_PAUSEMSG "Sürdürmek için bir düğmeye basınız . . . "
STRING_ERROR_DRIVER_NOT_READY "Sürücü anık değil."
- STRING_PATH_ERROR "CMD: ""%s"" ortamda yok.\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Geçersiz seçenek - %s\n"
STRING_REPLACE_ERROR2 "Yol bulunamadı - %s\n"
STRING_REPLACE_ERROR3 "Kütük adı, dizin adı ya da birim etiketi yazımı
yanlış.\n"
diff --git a/base/shell/cmd/lang/uk-UA.rc b/base/shell/cmd/lang/uk-UA.rc
index 2b6a6e85348..4b34f727177 100644
--- a/base/shell/cmd/lang/uk-UA.rc
+++ b/base/shell/cmd/lang/uk-UA.rc
@@ -528,7 +528,7 @@ title новий заголовок\n"
STRING_ERROR_CANNOTPIPE "Помилка! Неможливо використати pipe! Неможливо
вiдкрити тимчасовий файл!\n"
STRING_ERROR_D_PAUSEMSG "Натиснiть будь-яку клавiшу для продовження . . .
"
STRING_ERROR_DRIVER_NOT_READY "Пристрій не готовий"
- STRING_PATH_ERROR "CMD: Не в середовищi '%s'\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "Невiрний ключ - %s\n"
STRING_REPLACE_ERROR2 "Шлях не знайдено - %s\n"
STRING_REPLACE_ERROR3 "Синтаксис iменi файлу, теки чи мiтки диску
некоректнi.\n"
diff --git a/base/shell/cmd/lang/zh-CN.rc b/base/shell/cmd/lang/zh-CN.rc
index 724459ca8f4..7562413928b 100644
--- a/base/shell/cmd/lang/zh-CN.rc
+++ b/base/shell/cmd/lang/zh-CN.rc
@@ -488,7 +488,7 @@ RESTORE 恢复窗口\n\
STRING_ERROR_CANNOTPIPE "错误!无法创建管道!不能打开临时文件!\n"
STRING_ERROR_D_PAUSEMSG "按任意键继续... "
STRING_ERROR_DRIVER_NOT_READY "驱动器未就绪"
- STRING_PATH_ERROR "CMD: 不在环境 '%s' 中\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "无效开关 - %s\n"
STRING_REPLACE_ERROR2 "路径未找到 - %s\n"
STRING_REPLACE_ERROR3 "文件名、目录名或卷标语法不正确。\n"
diff --git a/base/shell/cmd/lang/zh-TW.rc b/base/shell/cmd/lang/zh-TW.rc
index d4e37356d5b..4d59c824948 100644
--- a/base/shell/cmd/lang/zh-TW.rc
+++ b/base/shell/cmd/lang/zh-TW.rc
@@ -489,7 +489,7 @@ RESTORE 恢復視窗\n\
STRING_ERROR_CANNOTPIPE "錯誤!無法創建管道!不能開啟臨時檔案!\n"
STRING_ERROR_D_PAUSEMSG "按任意鍵繼續... "
STRING_ERROR_DRIVER_NOT_READY "驅動器未就緒"
- STRING_PATH_ERROR "CMD: 不在環境 '%s' 中\n"
+ STRING_SET_ENV_ERROR "Environment variable '%s' is not defined\n"
STRING_REPLACE_ERROR1 "無效開關 - %s\n"
STRING_REPLACE_ERROR2 "路徑未找到 - %s\n"
STRING_REPLACE_ERROR3 "檔名、目錄名或卷標語法不正確。\n"
diff --git a/base/shell/cmd/path.c b/base/shell/cmd/path.c
index c00851dae40..1faed8ea29c 100644
--- a/base/shell/cmd/path.c
+++ b/base/shell/cmd/path.c
@@ -60,7 +60,7 @@ INT cmd_path (LPTSTR param)
if (dwBuffer == 0)
{
cmd_free(pszBuffer);
- ConOutResPrintf(STRING_VOL_HELP2, _T("PATH"));
+ ConErrResPrintf(STRING_SET_ENV_ERROR, _T("PATH"));
return 0;
}
else if (dwBuffer > ENV_BUFFER_SIZE)
diff --git a/base/shell/cmd/resource.h b/base/shell/cmd/resource.h
index 933d5677408..7836cfb96b8 100644
--- a/base/shell/cmd/resource.h
+++ b/base/shell/cmd/resource.h
@@ -52,7 +52,7 @@
#define STRING_GOTO_ERROR2 341
#define STRING_MOVE_ERROR1 342
#define STRING_MOVE_ERROR2 343
-#define STRING_PATH_ERROR 345
+#define STRING_SET_ENV_ERROR 345
#define STRING_REN_ERROR1 346
#define STRING_TIME_ERROR1 348
#define STRING_TYPE_ERROR1 349
diff --git a/base/shell/cmd/set.c b/base/shell/cmd/set.c
index 7a4a5d4c408..f63de691a2f 100644
--- a/base/shell/cmd/set.c
+++ b/base/shell/cmd/set.c
@@ -197,7 +197,7 @@ INT cmd_set(LPTSTR param)
if (!bFound)
{
- ConErrResPrintf(STRING_PATH_ERROR, param);
+ ConErrResPrintf(STRING_SET_ENV_ERROR, param);
nErrorLevel = 1;
return 1;
}