xcopy: Add help.

This commit is contained in:
Jason Edmeades 2007-03-30 19:20:22 +01:00 committed by Alexandre Julliard
parent bb2b2d7d3e
commit a8914b9494
3 changed files with 37 additions and 1 deletions

View File

@ -42,4 +42,38 @@ STRINGTABLE
STRING_ALL_CHAR, "A"
STRING_FILE_CHAR,"F"
STRING_DIR_CHAR, "D"
STRING_HELP,
"XCOPY - Copies source files or directory trees to a destination\n\
\n\
Syntax:\n\
XCOPY source [dest] [/I] [/S] [/Q] [/F] [/L] [/W] [/T] [/N] [/U] \n\
\t [/R] [/H] [/C] [/P] [/A] [/M] [/E] [/D] [/Y] [/-Y]\n\
\n\
Where:\n\
\n\
[/I] Assume directory if destination does not exist and copying 2 or \n\
\tmore files\n\
[/S] Copy directories and subdirectories\n\
[/E] Copy directories and subdirectories, including any empty ones\n\
[/Q] Do not list names during copy, ie quiet.\n\
[/F] Show full source and destination names during copy\n\
[/L] Simulate operation, showing names which would be copied\n\
[/W] Prompts before beginning the copy operation\n\
[/T] Creates empty directory structure but does not copy files\n\
[/Y] Suppress prompting when overwriting files\n\
[/-Y] Enable prompting when overwriting files\n\
[/P] Prompts on each source file before copying\n\
[/N] Copy using short names\n\
[/U] Copy only files which already exist in destination\n\
[/R] Overwrite any read only files\n\
[/H] Include hidden and system files in the copy\n\
[/C] Continue even if an error occurs during the copy\n\
[/A] Only copy files with archive attribute set\n\
[/M] Only copy files with archive attribute set, removes \n\
\tarchive attribute\n\
[/D | /D:m-d-y] Copy new files or those modified after the supplied date.\n\
\t\tIf no date is supplied, only copy if destination is older\n\
\t\tthan source\n\n"
}

View File

@ -27,7 +27,6 @@
* /O - Copy file ownership + ACL info
* /G - Copy encrypted files to unencrypted destination
* /V - Verifies files
* /? (or no parms) - List Help
*/
/*
@ -235,6 +234,8 @@ int main (int argc, char *argv[])
case '-': if (toupper(argvW[0][2])=='Y')
flags &= ~OPT_NOPROMPT; break;
case '?': wprintf(XCOPY_LoadMessage(STRING_HELP));
return RC_OK;
default:
WINE_TRACE("Unhandled parameter '%s'\n", wine_dbgstr_w(*argvW));
wprintf(XCOPY_LoadMessage(STRING_INVPARM), *argvW);

View File

@ -65,3 +65,4 @@
#define STRING_ALL_CHAR 114
#define STRING_FILE_CHAR 115
#define STRING_DIR_CHAR 116
#define STRING_HELP 117