cmd: Make PAUSE accept any keypress instead of a full input line.
[wine] / programs / cmd / cmd.rc
1 /*
2  * Wine command prompt resources
3  *
4  * Copyright (C) 1999 D A Pickles
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20
21 #include "wcmd.h"
22
23 /* @makedep: wcmd.ico */
24 IDI_ICON1 ICON wcmd.ico
25
26 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
27
28 STRINGTABLE
29 {
30   WCMD_CALL,
31 "CALL <batchfilename> is used within a batch file to execute commands\n\
32 from another batch file. When the batch file exits, control returns to\n\
33 the file which called it. The CALL command may supply parameters to the\n\
34 called procedure.\n\
35 \n\
36 Changes to default directory, environment variables etc made within a\n\
37 called procedure are inherited by the caller.\n"
38
39   WCMD_CD,     "CD <dir> is the short version of CHDIR. It changes the current\n\
40 default directory.\n"
41   WCMD_CHDIR,  "CHDIR <dir> changes the current default directory.\n"
42
43   WCMD_CLS,    "CLS clears the console screen.\n"
44
45   WCMD_COPY,   "COPY <filename> copies a file.\n"
46   WCMD_CTTY,   "CTTY changes the input/output device.\n"
47   WCMD_DATE,   "DATE shows or changes the system date.\n"
48   WCMD_DEL,    "DEL <filename> deletes a file or set of files.\n"
49   WCMD_DIR,    "DIR lists the contents of a directory.\n"
50
51   WCMD_ECHO,
52 "ECHO <string> displays <string> on the current terminal device.\n\
53 \n\
54 ECHO ON causes all subsequent commands in a batch file to be displayed\n\
55 on the terminal device before they are executed.\n\
56 \n\
57 ECHO OFF reverses the effect of a previous ECHO ON (ECHO is OFF by\n\
58 default). The ECHO OFF command can be prevented from displaying by\n\
59 preceding it with an @ sign.\n"
60
61   WCMD_ERASE,  "ERASE <filename> deletes a file or set of files.\n"
62
63   WCMD_FOR,
64 "The FOR command is used to execute a command for each of a set of files.\n\
65 \n\
66 Syntax: FOR %variable IN (set) DO command\n\
67 \n\
68 The requirement to double the % sign when using FOR in a batch file does\n\
69 not exist in wine's cmd.\n"
70
71   WCMD_GOTO,
72 "The GOTO command transfers execution to another statement within a\n\
73 batch file.\n\
74 \n\
75 The label which is the target of a GOTO may be up to 255 characters\n\
76 long but may not include spaces (this is different from other operating\n\
77 systems). If two or more identical labels exist in a batch file the\n\
78 first one will always be executed. Attempting to GOTO a nonexistent\n\
79 label terminates the batch file execution.\n\
80 \n\
81 GOTO has no effect when used interactively.\n"
82
83   WCMD_HELP,   "HELP <command> shows brief help details on a topic.\n\
84 HELP without an argument shows all CMD built-in commands.\n"
85
86   WCMD_IF,
87 "IF is used to conditionally execute a command.\n\
88 \n\
89 Syntax: IF [NOT] EXIST filename command\n\
90 \        IF [NOT] string1==string2 command\n\
91 \        IF [NOT] ERRORLEVEL number command\n\
92 \n\
93 In the second form of the command, string1 and string2 must be in double\n\
94 quotes. The comparison is not case-sensitive.\n"
95
96   WCMD_LABEL,  "LABEL is used to set a disk volume label.\n\
97 \n\
98 Syntax: LABEL [drive:]\n\
99 The command will prompt you for the new volume label for the given drive.\n\
100 You can display the disk volume label with the VOL command.\n"
101
102   WCMD_MD,
103 "MD <name> is the short version of MKDIR. It creates a subdirectory.\n"
104   WCMD_MKDIR,  "MKDIR <name> creates a subdirectory.\n"
105   WCMD_MOVE,
106 "MOVE relocates a file or directory to a new point within the file system.\n\
107 \n\
108 If the item being moved is a directory then all the files and subdirectories\n\
109 below the item are moved as well.\n\
110 \n\
111 MOVE fails if the old and new locations are on different DOS drive letters.\n"
112
113   WCMD_PATH,
114 "PATH displays or changes the cmd search path.\n\
115 \n\
116 Entering PATH will display the current PATH setting (initially taken\n\
117 from the registry). To change the setting follow the\n\
118 PATH command with the new value.\n\
119 \n\
120 It is also possible to modify the PATH by using the PATH environment\n\
121 variable, for example:\n\
122                 PATH %PATH%;c:\\temp\n"
123
124   WCMD_PAUSE,
125 "PAUSE displays a message on the screen asking the user to press a key.\n\
126 \n\
127 It is mainly useful in batch files to allow the user to read the output\n\
128 of a previous command before it scrolls off the screen.\n"
129
130   WCMD_PROMPT,
131 "PROMPT sets the command-line prompt.\n\
132 \n\
133 The string following the PROMPT command (and the space immediately after)\n\
134 appears at the beginning of the line when cmd is waiting for input.\n\
135 \n\
136 The following character strings have the special meaning shown:\n\
137 \n\
138 $$    Dollar sign         $_    Linefeed            $b    Pipe sign (|)\n\
139 $d    Current date        $e    Escape              $g    > sign\n\
140 $l    < sign              $n    Current drive       $p    Current path\n\
141 $q    Equal sign          $t    Current time        $v    cmd version\n\
142 \n\
143 Note that entering the PROMPT command without a prompt-string resets the\n\
144 prompt to the default, which is the current directory (which includes the\n\
145 current drive letter) followed by a greater-than (>) sign.\n\
146 (like a command PROMPT $p$g).\n\
147 \n\
148 The prompt can also be changed by altering the PROMPT environment variable,\n\
149 so the command 'SET PROMPT=text' has the same effect as 'PROMPT text'.\n"
150
151   WCMD_REM,
152 "A command line beginning REM (followed by a space) performs no\n\
153 action, and can therefore be used as a comment in a batch file.\n"
154
155   WCMD_REN,
156 "REN <filename> is the short version of RENAME. It renames a file.\n"
157   WCMD_RENAME, "RENAME <filename> renames a file.\n"
158   WCMD_RD,
159 "RD <dir> is the short version of RMDIR. It deletes a subdirectory.\n"
160   WCMD_RMDIR,  "RMDIR <dir> deletes a subdirectory.\n"
161
162   WCMD_SET,
163 "SET displays or changes the cmd environment variables.\n\
164 \n\
165 SET without parameters shows all of the current environment.\n\
166 \n\
167 To create or modify an environment variable the syntax is:\n\
168 \n\
169       SET <variable>=<value>\n\
170 \n\
171 where <variable> and <value> are character strings. There must be no\n\
172 spaces before the equals sign, nor can the variable name\n\
173 have embedded spaces.\n\
174 \n\
175 Under Wine, the environment of the underlying operating system is\n\
176 included into the Win32 environment, there will generally therefore be\n\
177 many more values than in a native Win32 implementation. Note that it is\n\
178 not possible to affect the operating system environment from within cmd.\n"
179
180   WCMD_SHIFT,
181 "SHIFT is used in a batch file to remove one parameter from the head of\n\
182 the list, so parameter 2 becomes parameter 1 and so on. It has no effect\n\
183 if called from the command line.\n"
184
185   WCMD_TIME,   "TIME sets or shows the current system time.\n"
186
187   WCMD_TITLE,  "Sets the window title for the cmd window, syntax TITLE [string]\n"
188
189   WCMD_TYPE,
190 "TYPE <filename> copies <filename> to the console device (or elsewhere\n\
191 if redirected). No check is made that the file is readable text.\n"
192
193   WCMD_VERIFY,
194 "VERIFY is used to set, clear or test the verify flag. Valid forms are:\n\
195 \n\
196 VERIFY ON\tSet the flag\n\
197 VERIFY OFF\tClear the flag\n\
198 VERIFY\t\tDisplays ON or OFF as appropriate.\n\
199 \n\
200 The verify flag has no function in Wine.\n"
201
202   WCMD_VER,
203 "VER displays the version of cmd you are running.\n"
204
205   WCMD_VOL,    "VOL shows the volume label of a disk device.\n"
206
207   WCMD_ENDLOCAL,
208 "ENDLOCAL ends localization of environment changes in a batch file\n\
209 which were introduced by a preceding SETLOCAL.\n"
210
211   WCMD_SETLOCAL,
212 "SETLOCAL starts localization of environment changes in a batch file.\n\
213 \n\
214 Environment changes done after a SETLOCAL are local to the batch file, and\n\
215 are preserved until the next ENDLOCAL is encountered (or at the end of the\n\
216 file, whichever comes first), at which point the previous environment\n\
217 settings are restored.\n"
218
219   WCMD_PUSHD,  "PUSHD <directoryname> saves the current directory onto a\n\
220 stack, and then changes the current directory to the supplied one.\n"
221
222   WCMD_POPD,   "POPD changes current directory to the last one saved with\n\
223 PUSHD.\n"
224
225   WCMD_ASSOC,   "ASSOC shows or modifies file extension associations\n\
226 \n\
227 Syntax: ASSOC [.ext[=[fileType]]]\n\
228 \n\
229 ASSOC without parameters displays current file associations.\n\
230 If used with only a file extension, displays the current association.\n\
231 Specifying no file type after the equal sign removes the current association, if any.\n"
232
233   WCMD_FTYPE,   "FTYPE shows or modifies open commands associated with file types\n\
234 \n\
235 Syntax: FTYPE [fileType[=[openCommand]]]\n\
236 \n\
237 Without parameters, shows the file types for which open command strings \
238 are currently defined.\n\
239 If used with only a file type, displays the associated open command string, \
240 if any.\n\
241 Specifying no open command after the equal sign removes the command string \
242 associated to the specified file type.\n"
243
244   WCMD_MORE,   "MORE displays output of files or piped input in pages.\n"
245
246   WCMD_CHOICE, "CHOICE displays a text and waits, until the User\n\
247 presses an allowed Key from a selectable list.\n\
248 CHOICE is mainly used to build a menu selection in a batch file.\n"
249
250   WCMD_EXIT,
251 "EXIT terminates the current command session and returns\n\
252 to the operating system or shell from which you invoked cmd.\n"
253
254   WCMD_ALLHELP, "CMD built-in commands are:\n\
255 ASSOC\t\tShow or modify file extension associations\n\
256 ATTRIB\t\tShow or change DOS file attributes\n\
257 CALL\t\tInvoke a batch file from inside another\n\
258 CD (CHDIR)\tChange current default directory\n\
259 CHOICE\t\tWait for an keypress from a selectable list\n\
260 CLS\t\tClear the console screen\n\
261 COPY\t\tCopy file\n\
262 CTTY\t\tChange input/output device\n\
263 DATE\t\tShow or change the system date\n\
264 DEL (ERASE)\tDelete a file or set of files\n\
265 DIR\t\tList the contents of a directory\n\
266 ECHO\t\tCopy text directly to the console output\n\
267 ENDLOCAL\tEnd localization of environment changes in a batch file\n\
268 FTYPE\t\tShow or modify open commands associated with file types\n\
269 HELP\t\tShow brief help details on a topic\n\
270 MD (MKDIR)\tCreate a subdirectory\n\
271 MORE\t\tDisplay output in pages\n\
272 MOVE\t\tMove a file, set of files or directory tree\n\
273 PATH\t\tSet or show the search path\n\
274 PAUSE\t\tSuspend execution of a batch file\n\
275 POPD\t\tRestore the directory to the last one saved with PUSHD\n\
276 PROMPT\t\tChange the command prompt\n\
277 PUSHD\t\tChange to a new directory, saving the current one\n\
278 REN (RENAME)\tRename a file\n\
279 RD (RMDIR)\tDelete a subdirectory\n\
280 SET\t\tSet or show environment variables\n\
281 SETLOCAL\tStart localization of environment changes in a batch file\n\
282 TIME\t\tSet or show the current system time\n\
283 TITLE\t\tSet the window title for the CMD session\n\
284 TYPE\t\tType the contents of a text file\n\
285 VER\t\tShow the current version of CMD\n\
286 VOL\t\tShow the volume label of a disk device\n\
287 XCOPY\t\tCopy source files or directory trees to a destination\n\
288 EXIT\t\tClose down CMD\n\n\
289 Enter HELP <command> for further information on any of the above commands.\n"
290
291   WCMD_CONFIRM, "Are you sure"
292   WCMD_YES, "#msgctxt#Yes key#Y"
293   WCMD_NO, "#msgctxt#No key#N"
294   WCMD_NOASSOC, "File association missing for extension %s\n"
295   WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
296   WCMD_OVERWRITE, "Overwrite %s"
297   WCMD_MORESTR, "More..."
298   WCMD_TRUNCATEDLINE, "Line in Batch processing possibly truncated. Using:\n"
299   WCMD_NYI, "Not Yet Implemented\n\n"
300   WCMD_NOARG, "Argument missing\n"
301   WCMD_SYNTAXERR, "Syntax error\n"
302   WCMD_FILENOTFOUND, "%s: File Not Found\n"
303   WCMD_NOCMDHELP, "No help available for %s\n"
304   WCMD_NOTARGET, "Target to GOTO not found\n"
305   WCMD_CURRENTDATE, "Current Date is %s\n"
306   WCMD_CURRENTTIME, "Current Time is %s\n"
307   WCMD_NEWDATE, "Enter new date: "
308   WCMD_NEWTIME, "Enter new time: "
309   WCMD_MISSINGENV, "Environment variable %s not defined\n"
310   WCMD_READFAIL, "Failed to open '%s'\n"
311   WCMD_CALLINSCRIPT, "Cannot call batch label outside of a batch script\n"
312   WCMD_ALL, "#msgctxt#All key#A"
313   WCMD_DELPROMPT, "%s, Delete"
314   WCMD_ECHOPROMPT, "Echo is %s\n"
315   WCMD_VERIFYPROMPT, "Verify is %s\n"
316   WCMD_VERIFYERR, "Verify must be ON or OFF\n"
317   WCMD_ARGERR, "Parameter error\n"
318   WCMD_VOLUMEDETAIL, "Volume in drive %c is %s\nVolume Serial Number is %04x-%04x\n\n"
319   WCMD_VOLUMEPROMPT, "Volume label (11 characters, ENTER for none)?"
320   WCMD_NOPATH, "PATH not found\n"
321   WCMD_ANYKEY,"Press any key to continue... "
322   WCMD_CONSTITLE,"Wine Command Prompt"
323   WCMD_VERSION,"CMD Version %s\n"
324   WCMD_MOREPROMPT, "More? "
325   WCMD_LINETOOLONG, "The input line is too long.\n"
326 }