cmd.rc 11.1 KB
Newer Older
1
/*
2
 * Wine command prompt resources
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 *
 * Copyright (C) 1999 D A Pickles
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * 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 22
#include "wcmd.h"

23 24 25
/* @makedep: wcmd.ico */
IDI_ICON1 ICON wcmd.ico

26 27 28 29
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT

STRINGTABLE
{
30
  WCMD_ATTRIB, "ATTRIB shows or changes DOS file attributes.\n"
31 32 33 34 35 36 37 38 39
  WCMD_CALL,
"CALL <batchfilename> is used within a batch file to execute commands\n\
from another batch file. When the batch file exits, control returns to\n\
the file which called it. The CALL command may supply parameters to the\n\
called procedure.\n\
\n\
Changes to default directory, environment variables etc made within a\n\
called procedure are inherited by the caller.\n"

40 41 42
  WCMD_CD,     "CD <dir> is the short version of CHDIR. It changes the current\n\
default directory.\n"
  WCMD_CHDIR,  "CHDIR <dir> changes the current default directory.\n"
43

44
  WCMD_CLS,    "CLS clears the console screen.\n"
45

46 47 48 49 50
  WCMD_COPY,   "COPY <filename> copies a file.\n"
  WCMD_CTTY,   "CTTY changes the input/output device.\n"
  WCMD_DATE,   "DATE shows or changes the system date.\n"
  WCMD_DEL,    "DEL <filename> deletes a file or set of files.\n"
  WCMD_DIR,    "DIR lists the contents of a directory.\n"
51 52 53 54 55 56 57 58 59 60 61

  WCMD_ECHO,
"ECHO <string> displays <string> on the current terminal device.\n\
\n\
ECHO ON causes all subsequent commands in a batch file to be displayed\n\
on the terminal device before they are executed.\n\
\n\
ECHO OFF reverses the effect of a previous ECHO ON (ECHO is OFF by\n\
default). The ECHO OFF command can be prevented from displaying by\n\
preceding it with an @ sign.\n"

62
  WCMD_ERASE,  "ERASE <filename> deletes a file or set of files.\n"
63 64 65 66 67 68

  WCMD_FOR,
"The FOR command is used to execute a command for each of a set of files.\n\
\n\
Syntax: FOR %variable IN (set) DO command\n\
\n\
69
The requirement to double the % sign when using FOR in a batch file does\n\
70
not exist in wine's cmd.\n"
71 72 73 74 75 76

  WCMD_GOTO,
"The GOTO command transfers execution to another statement within a\n\
batch file.\n\
\n\
The label which is the target of a GOTO may be up to 255 characters\n\
77
long but may not include spaces (this is different from other operating\n\
78
systems). If two or more identical labels exist in a batch file the\n\
79
first one will always be executed. Attempting to GOTO a nonexistent\n\
80 81 82 83
label terminates the batch file execution.\n\
\n\
GOTO has no effect when used interactively.\n"

84 85
  WCMD_HELP,   "HELP <command> shows brief help details on a topic.\n\
HELP without an argument shows all CMD built-in commands.\n"
86 87 88 89 90 91 92 93 94 95 96

  WCMD_IF,
"IF is used to conditionally execute a command.\n\
\n\
Syntax:	IF [NOT] EXIST filename command\n\
	IF [NOT] string1==string2 command\n\
	IF [NOT] ERRORLEVEL number command\n\
\n\
In the second form of the command, string1 and string2 must be in double\n\
quotes. The comparison is not case-sensitive.\n"

97
  WCMD_LABEL,  "LABEL is used to set a disk volume label.\n\
98 99 100 101 102
\n\
Syntax: LABEL [drive:]\n\
The command will prompt you for the new volume label for the given drive.\n\
You can display the disk volume label with the VOL command.\n"

103 104 105
  WCMD_MD,
"MD <name> is the short version of MKDIR. It creates a subdirectory.\n"
  WCMD_MKDIR,  "MKDIR <name> creates a subdirectory.\n"
106 107 108 109 110 111 112 113 114
  WCMD_MOVE,
"MOVE relocates a file or directory to a new point within the file system.\n\
\n\
If the item being moved is a directory then all the files and subdirectories\n\
below the item are moved as well.\n\
\n\
MOVE fails if the old and new locations are on different DOS drive letters.\n"

  WCMD_PATH,
115
"PATH displays or changes the cmd search path.\n\
116
\n\
117 118
Entering PATH will display the current PATH setting (initially taken\n\
from the registry). To change the setting follow the\n\
119 120 121 122
PATH command with the new value.\n\
\n\
It is also possible to modify the PATH by using the PATH environment\n\
variable, for example:\n\
123
		PATH %PATH%;c:\\temp\n"
124 125 126 127 128 129 130 131 132 133 134

  WCMD_PAUSE,
"PAUSE displays a message on the screen 'Press Return key to continue'\n\
and waits for the user to press the Return key. It is mainly useful in\n\
batch files to allow the user to read the output of a previous command\n\
before it scrolls off the screen.\n"

  WCMD_PROMPT,
"PROMPT sets the command-line prompt.\n\
\n\
The string following the PROMPT command (and the space immediately after)\n\
135
appears at the beginning of the line when cmd is waiting for input.\n\
136 137 138 139 140
\n\
The following character strings have the special meaning shown:\n\
\n\
$$    Dollar sign         $_    Linefeed            $b    Pipe sign (|)\n\
$d    Current date        $e    Escape              $g    > sign\n\
141
$l    < sign              $n    Current drive       $p    Current path\n\
142
$q    Equal sign          $t    Current time        $v    cmd version\n\
143 144
\n\
Note that entering the PROMPT command without a prompt-string resets the\n\
145 146
prompt to the default, which is the current directory (which includes the\n\
current drive letter) followed by a greater-than (>) sign.\n\
147
(like a command PROMPT $p$g).\n\
148 149 150 151 152 153 154 155
\n\
The prompt can also be changed by altering the PROMPT environment variable,\n\
so the command 'SET PROMPT=text' has the same effect as 'PROMPT text'\n"

  WCMD_REM,
"A command line beginning REM (followed by a space) performs no\n\
action, and can therefore be used as a comment in a batch file.\n"

156 157 158 159 160 161
  WCMD_REN,
"REN <filename> is the short version of RENAME. It renames a file.\n"
  WCMD_RENAME, "RENAME <filename> renames a file\n"
  WCMD_RD,
"RD <dir> is the short version of RMDIR. It deletes a subdirectory.\n"
  WCMD_RMDIR,  "RMDIR <dir> deletes a subdirectory.\n"
162 163

  WCMD_SET,
164
"SET displays or changes the cmd environment variables.\n\
165 166 167 168 169 170 171 172
\n\
SET without parameters shows all of the current environment.\n\
\n\
To create or modify an environment variable the syntax is:\n\
\n\
      SET <variable>=<value>\n\
\n\
where <variable> and <value> are character strings. There must be no\n\
173
spaces before the equals sign, nor can the variable name\n\
174 175 176 177 178
have embedded spaces.\n\
\n\
Under Wine, the environment of the underlying operating system is\n\
included into the Win32 environment, there will generally therefore be\n\
many more values than in a native Win32 implementation. Note that it is\n\
179
not possible to affect the operating system environment from within cmd.\n"
180 181 182 183 184 185

  WCMD_SHIFT,
"SHIFT is used in a batch file to remove one parameter from the head of\n\
the list, so parameter 2 becomes parameter 1 and so on. It has no effect\n\
if called from the command line.\n"

186
  WCMD_TIME,   "TIME sets or shows the current system time.\n"
187

188
  WCMD_TITLE,  "Sets the window title for the cmd window, syntax TITLE [string]\n"
189 190 191 192 193 194 195 196

  WCMD_TYPE,
"TYPE <filename> copies <filename> to the console device (or elsewhere\n\
if redirected). No check is made that the file is readable text.\n"

  WCMD_VERIFY,
"VERIFY is used to set, clear or test the verify flag. Valid forms are:\n\
\n\
197 198 199
VERIFY ON\tSet the flag\n\
VERIFY OFF\tClear the flag\n\
VERIFY\t\tDisplays ON or OFF as appropriate.\n\
200 201 202 203
\n\
The verify flag has no function in Wine.\n"

  WCMD_VER,
204
"VER displays the version of cmd you are running\n"
205

206
  WCMD_VOL,    "VOL shows the volume label of a disk device.\n"
207

208 209 210 211 212 213
  WCMD_PUSHD,  "PUSHD <directoryname> saves the current directory onto a\n\
stack, and then changes the current directory to the supplied one.\n"

  WCMD_POPD,   "POPD changes current directory to the last one saved with\n\
PUSHD.\n"

214 215
  WCMD_MORE,   "MORE displays output of files or piped input in pages.\n"

216
  WCMD_CHOICE, "CHOICE displays a text and waits, until the User\n\
217
presses an allowed Key from a selectable list.\n\
218 219
CHOICE is mainly used to build a menu selection in a batch file.\n"

220 221
  WCMD_EXIT,
"EXIT terminates the current command session and returns\n\
222
to the operating system or shell from which you invoked cmd.\n"
223

224
  WCMD_ALLHELP, "CMD built-in commands are:\n\
225 226 227
ATTRIB\t\tShow or change DOS file attributes\n\
CALL\t\tInvoke a batch file from inside another\n\
CD (CHDIR)\tChange current default directory\n\
228
CHOICE\t\tWait for an keypress from a selectable list\n\
229 230 231 232 233 234 235 236 237
CLS\t\tClear the console screen\n\
COPY\t\tCopy file\n\
CTTY\t\tChange input/output device\n\
DATE\t\tShow or change the system date\n\
DEL (ERASE)\tDelete a file or set of files\n\
DIR\t\tList the contents of a directory\n\
ECHO\t\tCopy text directly to the console output\n\
HELP\t\tShow brief help details on a topic\n\
MD (MKDIR)\tCreate a subdirectory\n\
238
MORE\t\tDisplay output in pages\n\
239 240
MOVE\t\tMove a file, set of files or directory tree\n\
PATH\t\tSet or show the search path\n\
241
POPD\t\tRestores the directory to the last one saved with PUSHD\n\
242
PROMPT\t\tChange the command prompt\n\
243
PUSHD\t\tChanges to a new directory, saving the current one\n\
244 245 246 247
REN (RENAME)\tRename a file\n\
RD (RMDIR)\tDelete a subdirectory\n\
SET\t\tSet or show environment variables\n\
TIME\t\tSet or show the current system time\n\
248
TITLE\t\tSet the window title for the CMD session\n\
249
TYPE\t\tType the contents of a text file\n\
250
VER\t\tShow the current version of CMD\n\
251
VOL\t\tShow the volume label of a disk device\n\
252
EXIT\t\tClose down CMD\n\n\
253
Enter HELP <command> for further information on any of the above commands\n"
254 255

  WCMD_CONFIRM, "Are you sure"
256 257
  WCMD_YES, "#msgctxt#Yes key#Y"
  WCMD_NO, "#msgctxt#No key#N"
258
  WCMD_NOASSOC, "File association missing for extension %s\n"
259
  WCMD_NOFTYPE, "No open command associated with file type '%s'\n"
260
  WCMD_OVERWRITE, "Overwrite %s"
261
  WCMD_MORESTR, "More..."
262 263 264 265 266 267 268 269 270 271 272 273 274 275
  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"
276
  WCMD_ALL, "#msgctxt#All key#A"
277 278 279
  WCMD_DELPROMPT, "%s, Delete"
  WCMD_ECHOPROMPT, "Echo is %s\n"
  WCMD_VERIFYPROMPT, "Verify is %s\n"
280
  WCMD_VERIFYERR, "Verify must be ON or OFF\n"
281 282 283
  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)?"
284 285 286 287
  WCMD_NOPATH, "PATH not found\n"
  WCMD_ANYKEY,"Press Return key to continue: "
  WCMD_CONSTITLE,"Wine Command Prompt"
  WCMD_VERSION,"CMD Version %s\n\n"
288
  WCMD_MOREPROMPT, "More? "
289
  WCMD_LINETOOLONG, "The input line is too long.\n"
290
}