Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
5cc492c7
Commit
5cc492c7
authored
Jun 03, 2007
by
Jason Edmeades
Committed by
Alexandre Julliard
Jun 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd.exe: Move English constants into NLS files.
parent
a1b55be6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
386 additions
and
40 deletions
+386
-40
Cs.rc
programs/cmd/Cs.rc
+23
-1
De.rc
programs/cmd/De.rc
+23
-1
En.rc
programs/cmd/En.rc
+23
-1
Es.rc
programs/cmd/Es.rc
+23
-1
Fr.rc
programs/cmd/Fr.rc
+23
-1
Ja.rc
programs/cmd/Ja.rc
+23
-1
Ko.rc
programs/cmd/Ko.rc
+23
-1
Nl.rc
programs/cmd/Nl.rc
+23
-1
No.rc
programs/cmd/No.rc
+23
-1
Pl.rc
programs/cmd/Pl.rc
+23
-1
Pt.rc
programs/cmd/Pt.rc
+23
-1
Ru.rc
programs/cmd/Ru.rc
+23
-1
Si.rc
programs/cmd/Si.rc
+23
-1
Tr.rc
programs/cmd/Tr.rc
+23
-1
batch.c
programs/cmd/batch.c
+11
-10
builtins.c
programs/cmd/builtins.c
+0
-0
directory.c
programs/cmd/directory.c
+3
-3
wcmd.h
programs/cmd/wcmd.h
+31
-9
wcmdmain.c
programs/cmd/wcmdmain.c
+19
-4
No files found.
programs/cmd/Cs.rc
View file @
5cc492c7
...
...
@@ -239,6 +239,28 @@ Zadejte HELP <pkaz> pro podrobnj informace o nkterm z ve uvedench pk
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/De.rc
View file @
5cc492c7
...
...
@@ -263,6 +263,28 @@ obigen Befehle erhalten.\n"
WCMD_NO, "N"
WCMD_NOASSOC, "Verknüpfung für Dateiendung %s fehlt\n"
WCMD_NOFTYPE, "Kein Befehl zum Öffnen für Dateityp '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/En.rc
View file @
5cc492c7
...
...
@@ -243,6 +243,28 @@ Enter HELP <command> for further information on any of the above commands\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Es.rc
View file @
5cc492c7
...
...
@@ -260,6 +260,28 @@ Introduzca HELP <comando> para ms informacin sobre cualquiera de los comandos\
WCMD_NO, "N"
WCMD_NOASSOC, "Falta una asociación de archivo para la extensión %s\n"
WCMD_NOFTYPE, "Ningún comando de apertura asociado con el tipo de archivo '%s'\n"
WCMD_OVERWRITE, "
Sobreescribir
"
WCMD_OVERWRITE, "
Overwrite %s
"
WCMD_MORESTR, "Más..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Fr.rc
View file @
5cc492c7
...
...
@@ -233,6 +233,28 @@ Entrez HELP <commande> pour plus d'informations sur les commandes ci-dessus\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Ja.rc
View file @
5cc492c7
...
...
@@ -237,6 +237,28 @@ EXIT\t\tCMDI\n\n\
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Ko.rc
View file @
5cc492c7
...
...
@@ -235,6 +235,28 @@ HELP <명령>을 치면 그 명령의 상세한 정보를 보여줌\n"
WCMD_NO, "아니오"
WCMD_NOASSOC, "이 파일확장자 %s에 연결된 풀그림이 없습니다. \n"
WCMD_NOFTYPE, "이 파일 형식 '%s'과 연결된 어떠한 명령도 없습니다.'\n"
WCMD_OVERWRITE, "
덮어쓰기
"
WCMD_OVERWRITE, "
Overwrite %s
"
WCMD_MORESTR, "더 많이..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Nl.rc
View file @
5cc492c7
...
...
@@ -236,6 +236,28 @@ type HELP <opdracht> voor meer informatie over bovengenoemde opdrachten\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/No.rc
View file @
5cc492c7
...
...
@@ -241,6 +241,28 @@ Skriv HELP <kommando> for mer informasjon om kommandoene ovenfor\n"
WCMD_NO, "N"
WCMD_NOASSOC, "Manglende filtilknytning for etternavnet %s\n"
WCMD_NOFTYPE, "Ingen åpnekommando er tilknyttet filtypene '%s'\n"
WCMD_OVERWRITE, "Over
skriv
"
WCMD_OVERWRITE, "Over
write %s
"
WCMD_MORESTR, "Mer . . ."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Pl.rc
View file @
5cc492c7
...
...
@@ -238,6 +238,28 @@ Wpisz HELP <komenda> dla dokadniejszych informacji o komendzie\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Pt.rc
View file @
5cc492c7
...
...
@@ -446,6 +446,28 @@ Digite HELP <comando> para mais informaes sobre alguns dos comandos acima\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Ru.rc
View file @
5cc492c7
...
...
@@ -249,6 +249,28 @@ EXIT\t\t CMD\n\n\
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Si.rc
View file @
5cc492c7
...
...
@@ -235,6 +235,28 @@ Enter HELP <command> for further information on any of the above commands\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/Tr.rc
View file @
5cc492c7
...
...
@@ -237,6 +237,28 @@ Yukardaki komutlar hakknda daha fazla bilgi iin HELP <komut> girin\n"
WCMD_NO, "N"
WCMD_NOASSOC, "File association missing for extension %s\n"
WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
WCMD_OVERWRITE, "Overwrite"
WCMD_OVERWRITE, "Overwrite
%s
"
WCMD_MORESTR, "More..."
WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
WCMD_NYI, "Not Yet Implemented\n\n"
WCMD_NOARG, "Argument missing\n"
WCMD_SYNTAXERR, "Syntax error\n"
WCMD_FILENOTFOUND, "%s : File Not Found\n"
WCMD_NOCMDHELP, "No help available for %s\n"
WCMD_NOTARGET, "Target to GOTO not found\n"
WCMD_CURRENTDATE, "Current Date is %s\n"
WCMD_CURRENTTIME, "Current Time is %s\n"
WCMD_NEWDATE, "Enter new date: "
WCMD_NEWTIME, "Enter new time: "
WCMD_MISSINGENV, "Environment variable %s not defined\n"
WCMD_READFAIL, "Failed to open '%s'\n"
WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
WCMD_ALL, "A"
WCMD_DELPROMPT, "%s, Delete"
WCMD_ECHOPROMPT, "Echo is %s\n"
WCMD_VERIFYPROMPT, "Verify is %s\n"
WCMD_VERIFYERR, "Verify must be ON or OFF\n";
WCMD_ARGERR, "Parameter error\n"
WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
}
programs/cmd/batch.c
View file @
5cc492c7
...
...
@@ -106,9 +106,9 @@ void WCMD_batch (char *file, char *command, int called, char *startLabel, HANDLE
while
(
context
->
skip_rest
==
FALSE
&&
WCMD_fgets
(
string
,
sizeof
(
string
),
h
))
{
if
(
strlen
(
string
)
==
MAXSTRING
-
1
)
{
WCMD_output_asis
(
"Line in Batch processing possibly truncated. Using:
\n
"
);
WCMD_output_asis
(
WCMD_LoadMessage
(
WCMD_TRUNCATEDLINE
)
);
WCMD_output_asis
(
string
);
WCMD_output_asis
(
"
\n
"
);
WCMD_output_asis
(
newline
);
}
if
(
string
[
0
]
!=
':'
)
{
/* Skip over labels */
WCMD_process_command
(
string
);
...
...
@@ -323,6 +323,7 @@ void WCMD_HandleTildaModifiers(char **start, char *forVariable) {
const
char
validmodifiers
[
NUMMODIFIERS
]
=
{
'~'
,
'f'
,
'd'
,
'p'
,
'n'
,
'x'
,
's'
,
'a'
,
't'
,
'z'
,
'$'
};
const
char
space
[]
=
" "
;
WIN32_FILE_ATTRIBUTE_DATA
fileInfo
;
char
outputparam
[
MAX_PATH
];
...
...
@@ -479,13 +480,13 @@ void WCMD_HandleTildaModifiers(char **start, char *forVariable) {
int
datelen
;
doneModifier
=
TRUE
;
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
" "
);
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
space
);
/* Format the time */
FileTimeToSystemTime
(
&
fileInfo
.
ftLastWriteTime
,
&
systime
);
GetDateFormat
(
LOCALE_USER_DEFAULT
,
DATE_SHORTDATE
,
&
systime
,
NULL
,
thisoutput
,
MAX_PATH
);
strcat
(
thisoutput
,
" "
);
strcat
(
thisoutput
,
space
);
datelen
=
strlen
(
thisoutput
);
GetTimeFormat
(
LOCALE_USER_DEFAULT
,
TIME_NOSECONDS
,
&
systime
,
NULL
,
(
thisoutput
+
datelen
),
MAX_PATH
-
datelen
);
...
...
@@ -500,14 +501,14 @@ void WCMD_HandleTildaModifiers(char **start, char *forVariable) {
fileInfo
.
nFileSizeLow
;
doneModifier
=
TRUE
;
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
" "
);
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
space
);
sprintf
(
thisoutput
,
"%u"
,
fullsize
);
strcat
(
finaloutput
,
thisoutput
);
}
/* 4. Handle 's' : Use short paths (File doesn't have to exist) */
if
(
memchr
(
firstModifier
,
's'
,
modifierLen
)
!=
NULL
)
{
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
" "
);
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
space
);
/* Don't flag as doneModifier - %~s on its own is processed later */
GetShortPathName
(
outputparam
,
outputparam
,
sizeof
(
outputparam
));
}
...
...
@@ -516,7 +517,7 @@ void WCMD_HandleTildaModifiers(char **start, char *forVariable) {
/* Note this overrides d,p,n,x */
if
(
memchr
(
firstModifier
,
'f'
,
modifierLen
)
!=
NULL
)
{
doneModifier
=
TRUE
;
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
" "
);
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
space
);
strcat
(
finaloutput
,
fullfilename
);
}
else
{
...
...
@@ -526,7 +527,7 @@ void WCMD_HandleTildaModifiers(char **start, char *forVariable) {
char
ext
[
MAX_PATH
];
BOOL
doneFileModifier
=
FALSE
;
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
" "
);
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
space
);
/* Split into components */
WCMD_splitpath
(
fullfilename
,
drive
,
dir
,
fname
,
ext
);
...
...
@@ -563,7 +564,7 @@ void WCMD_HandleTildaModifiers(char **start, char *forVariable) {
if
(
!
doneFileModifier
&&
memchr
(
firstModifier
,
's'
,
modifierLen
)
!=
NULL
)
{
doneModifier
=
TRUE
;
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
" "
);
if
(
finaloutput
[
0
]
!=
0x00
)
strcat
(
finaloutput
,
space
);
strcat
(
finaloutput
,
outputparam
);
}
}
...
...
@@ -611,7 +612,7 @@ void WCMD_call (char *command) {
SetFilePointer
(
context
->
h
,
li
.
u
.
LowPart
,
&
li
.
u
.
HighPart
,
FILE_BEGIN
);
}
else
{
printf
(
"Cannot call batch label outside of a batch script
\n
"
);
WCMD_output_asis
(
WCMD_LoadMessage
(
WCMD_CALLINSCRIPT
)
);
}
}
}
programs/cmd/builtins.c
View file @
5cc492c7
This diff is collapsed.
Click to expand it.
programs/cmd/directory.c
View file @
5cc492c7
...
...
@@ -490,7 +490,7 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
fd
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
fd
,(
entry_count
+
1
)
*
sizeof
(
WIN32_FIND_DATA
));
if
(
fd
==
NULL
)
{
FindClose
(
hff
);
W
CMD_output
(
"Memory Allocation Error
"
);
W
INE_ERR
(
"Out of memory
"
);
errorlevel
=
1
;
return
parms
->
next
;
}
...
...
@@ -504,7 +504,7 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
/* Output the results */
if
(
!
bare
)
{
if
(
level
!=
0
&&
(
entry_count
>
0
))
WCMD_output
(
"
\n
"
);
if
(
level
!=
0
&&
(
entry_count
>
0
))
WCMD_output
(
newline
);
if
(
!
recurse
||
((
entry_count
>
0
)
&&
done_header
==
FALSE
))
{
WCMD_output
(
"Directory of %s
\n\n
"
,
real_path
);
done_header
=
TRUE
;
...
...
@@ -629,7 +629,7 @@ static DIRECTORY_STACK *WCMD_list_directory (DIRECTORY_STACK *inputparms, int le
}
}
}
if
(
addNewLine
)
WCMD_output
(
"
\n
"
);
if
(
addNewLine
)
WCMD_output
(
newline
);
cur_width
=
0
;
}
...
...
programs/cmd/wcmd.h
View file @
5cc492c7
...
...
@@ -83,9 +83,10 @@ char *WCMD_strtrim_leading_spaces (char *string);
void
WCMD_strtrim_trailing_spaces
(
char
*
string
);
void
WCMD_opt_s_strip_quotes
(
char
*
cmd
);
void
WCMD_HandleTildaModifiers
(
char
**
start
,
char
*
forVariable
);
BOOL
WCMD_ask_confirm
(
char
*
message
,
BOOL
showSureText
);
BOOL
WCMD_ask_confirm
(
char
*
message
,
BOOL
showSureText
,
BOOL
*
optionAll
);
void
WCMD_splitpath
(
const
CHAR
*
path
,
CHAR
*
drv
,
CHAR
*
dir
,
CHAR
*
name
,
CHAR
*
ext
);
char
*
WCMD_LoadMessage
(
UINT
id
);
/* Data structure to hold context when executing batch files */
...
...
@@ -179,19 +180,40 @@ typedef struct _DIRECTORY_STACK
#define WCMD_EXIT 44
/* Some standard messages */
extern
const
char
nyi
[];
extern
const
char
newline
[];
extern
const
char
version_string
[];
extern
const
char
anykey
[];
/* Translated messages */
#define WCMD_CONFIRM 1001
#define WCMD_YES 1002
#define WCMD_NO 1003
#define WCMD_NOASSOC 1004
#define WCMD_NOFTYPE 1005
#define WCMD_OVERWRITE 1006
#define WCMD_MORESTR 1007
#define WCMD_CONFIRM 1001
#define WCMD_YES 1002
#define WCMD_NO 1003
#define WCMD_NOASSOC 1004
#define WCMD_NOFTYPE 1005
#define WCMD_OVERWRITE 1006
#define WCMD_MORESTR 1007
#define WCMD_TRUNCATEDLINE 1008
#define WCMD_NYI 1009
#define WCMD_NOARG 1010
#define WCMD_SYNTAXERR 1011
#define WCMD_FILENOTFOUND 1012
#define WCMD_NOCMDHELP 1013
#define WCMD_NOTARGET 1014
#define WCMD_CURRENTDATE 1015
#define WCMD_CURRENTTIME 1016
#define WCMD_NEWDATE 1017
#define WCMD_NEWTIME 1018
#define WCMD_MISSINGENV 1019
#define WCMD_READFAIL 1020
#define WCMD_CALLINSCRIPT 1021
#define WCMD_ALL 1022
#define WCMD_DELPROMPT 1023
#define WCMD_ECHOPROMPT 1024
#define WCMD_VERIFYPROMPT 1025
#define WCMD_VERIFYERR 1026
#define WCMD_ARGERR 1027
#define WCMD_VOLUMEDETAIL 1028
#define WCMD_VOLUMEPROMPT 1029
/* msdn specified max for Win XP */
#define MAXSTRING 8192
programs/cmd/wcmdmain.c
View file @
5cc492c7
...
...
@@ -42,7 +42,6 @@ HINSTANCE hinst;
DWORD
errorlevel
;
int
echo_mode
=
1
,
verify_mode
=
0
,
defaultColor
=
7
;
static
int
opt_c
,
opt_k
,
opt_s
;
const
char
nyi
[]
=
"Not Yet Implemented
\n\n
"
;
const
char
newline
[]
=
"
\n
"
;
const
char
version_string
[]
=
"CMD Version "
PACKAGE_VERSION
"
\n\n
"
;
const
char
anykey
[]
=
"Press Return key to continue: "
;
...
...
@@ -466,7 +465,7 @@ void WCMD_process_command (char *command)
if
(
echo_mode
&&
(
cmd
[
0
]
!=
'@'
))
{
WCMD_show_prompt
();
WCMD_output_asis
(
cmd
);
WCMD_output_asis
(
"
\n
"
);
WCMD_output_asis
(
newline
);
}
}
...
...
@@ -1129,7 +1128,7 @@ void WCMD_print_error (void) {
status
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
(
LPTSTR
)
&
lpMsgBuf
,
0
,
NULL
);
if
(
!
status
)
{
W
CMD_output
(
"FIXME:
Cannot display message for error %d, status %d
\n
"
,
W
INE_FIXME
(
"
Cannot display message for error %d, status %d
\n
"
,
error_code
,
GetLastError
());
return
;
}
...
...
@@ -1208,7 +1207,7 @@ void WCMD_output (const char *format, ...) {
ret
=
vsnprintf
(
string
,
sizeof
(
string
),
format
,
ap
);
va_end
(
ap
);
if
(
ret
>=
sizeof
(
string
))
{
W
CMD_output_asis
(
"ERR: o
utput truncated in WCMD_output
\n
"
);
W
INE_ERR
(
"O
utput truncated in WCMD_output
\n
"
);
string
[
sizeof
(
string
)
-
1
]
=
'\0'
;
}
WCMD_output_asis
(
string
);
...
...
@@ -1603,3 +1602,19 @@ static char *WCMD_expand_envvar(char *start) {
}
return
start
+
1
;
}
/*************************************************************************
* WCMD_LoadMessage
* Load a string from the resource file, handling any error
* Returns string retrieved from resource file
*/
char
*
WCMD_LoadMessage
(
UINT
id
)
{
static
char
msg
[
2048
];
const
char
failedMsg
[]
=
"Failed!"
;
if
(
!
LoadString
(
GetModuleHandle
(
NULL
),
id
,
msg
,
sizeof
(
msg
)))
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
lstrcpy
(
msg
,
failedMsg
);
}
return
msg
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment