cmd.rc 15 KB

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