Wine imported xcopy command line tool

svn path=/trunk/; revision=29794
This commit is contained in:
Marc Piulachs 2007-10-22 19:55:26 +00:00
parent 5492d9a135
commit 49b663a0a1
10 changed files with 1488 additions and 0 deletions

View file

@ -10,4 +10,7 @@
<directory name="more">
<xi:include href="more/more.rbuild" />
</directory>
<directory name="xcopy">
<xi:include href="xcopy/xcopy.rbuild" />
</directory>
</group>

View file

@ -0,0 +1,79 @@
/*
* XCOPY - Wine-compatible xcopy program
* English language support
*
* Copyright (C) 2007 J. Edmeades
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_INVPARMS, "Invalid number of parameters - Use xcopy /? for help\n"
STRING_INVPARM, "Invalid parameter '%s' - Use xcopy /? for help\n"
STRING_PAUSE, "Press <enter> to begin copying\n"
STRING_SIMCOPY, "%d file(s) would be copied\n"
STRING_COPY, "%d file(s) copied\n"
STRING_QISDIR, "Is '%s' a filename or directory\n" \
"on the target?\n" \
"(F - File, D - Directory)\n"
STRING_SRCPROMPT,"%s? (Yes|No)\n"
STRING_OVERWRITE,"Overwrite %s? (Yes|No|All)\n"
STRING_COPYFAIL, "Copying of '%s' to '%s' failed with r/c %d\n"
STRING_OPENFAIL, "Failed to open '%s'\n"
STRING_READFAIL, "Failed during reading of '%s'\n"
STRING_YES_CHAR, "Y"
STRING_NO_CHAR, "N"
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

@ -0,0 +1,80 @@
/*
* XCOPY - Wine-compatible xcopy program
* Korean language support
*
* Copyright (C) 2007 J. Edmeades
* Copyright (C) 2007 YunSong Hwang(hys545@dreamwiz.com)
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_INVPARMS, "올바르지 않은 매개변수의 갯수 - xcopy /?로 도움말을 보시오\n"
STRING_INVPARM, "올바르지 않은 매개변수 '%s' - xcopy /?로 도움말을 보시오\n"
STRING_PAUSE, "<enter> 를 누르면 복사가 시작될 것입니다\n"
STRING_SIMCOPY, "%d 파일이 복사될 것입니다\n"
STRING_COPY, "%d 파일이 복사되었습니다\n"
STRING_QISDIR, "'%s'이 복사할 파일이나 디렉토리?\n" \
"입니까?\n" \
"(F - 파일, D - 디렉토리)\n"
STRING_SRCPROMPT,"%s? (예|아니오)\n"
STRING_OVERWRITE,"%s를 덮어쓰겠습니까? (예|아니오|모두)\n"
STRING_COPYFAIL, "Copying of '%s' to '%s' failed with r/c %d\n"
STRING_OPENFAIL, "'%s' 열기 실패\n"
STRING_READFAIL, "'%s를 읽지 못했습니다'\n"
STRING_YES_CHAR, "Y"
STRING_NO_CHAR, "N"
STRING_ALL_CHAR, "A"
STRING_FILE_CHAR,"F"
STRING_DIR_CHAR, "D"
STRING_HELP,
"XCOPY - 원본 파일이나 디렉토리 구조를 목적지로 복사\n\
\n\
문법:\n\
XCOPY 원본 [대상] [/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] 디렉토리하고 하위 디렉토리 복사\n\
[/E] 빈 디렉토리를 포함해서 디렉토리와 하위 디렉토리 복사\n\
[/Q] 조용하게 복사되는 파일이나 디렉토리를 표시하지 않고 복사.\n\
[/F] 복사하는 동안 완전한 원본과 대상 보여주기\n\
[/L] 복사될 것을 보여주면서 가상으로 작업\n\
[/W] 복사시작 하기 전에 확인하기\n\
[/T] 파일은 복사하지 않고 빈 디렉토리 구조만 복사\n\
[/Y] 파일 덮어 쓸 때 확인하지 않기\n\
[/-Y] 파일을 덮어 쓸 때 확인하기\n\
[/P] 복사하는 동안에 각가의 원본 파일마다 확인\n\
[/N] 짧은 이름을 사용해서 복사\n\
[/U] 이미 대상 디렉토리에 존재하는 파일만 복사\n\
[/R] 읽기 전용 파일도 덮어 쓰기\n\
[/H] 숨은 파일이나 시스템 파일도 포함해서 복사\n\
[/C] 복사하는 동안에 에러가 발생해도 계속 진행\n\
[/A] 오직 압축 속성이 설정되어있는 파일만 복사\n\
[/M] 오직 압축 속성을 제거하면서 압축 속성이 설정되어있는 \n\
\파일만 복사 \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

@ -0,0 +1,79 @@
/*
* XCOPY - Wine-compatible xcopy program
* Polish language support
*
* Copyright (C) 2007 J. Edmeades
* Copyright (C) 2007 Mikolaj Zalewski
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
LANGUAGE LANG_POLISH, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_INVPARMS, "Niewłaściwa liczba parametrów - uruchom xcopy /? aby wyświetlić pomoc\n"
STRING_INVPARM, "Nieznany parameter '%s' - uruchom xcopy /? aby wyświetlić pomoc\n"
STRING_PAUSE, "Naciśnij <enter> aby rozpocząć kopiowanie\n"
STRING_SIMCOPY, "%d plik(ów) zostałoby skopiowanych\n"
STRING_COPY, "%d plik(ów) skopiowanych\n"
STRING_QISDIR, "Czy '%s' jest nazwą pliku czy katalogu\n" \
"docelowego?\n" \
"(P - plik, K - katalog)\n"
STRING_SRCPROMPT,"%s? (Tak|Nie)\n"
STRING_OVERWRITE,"Zastąpić %s? (Tak|Nie|Wszystkie)\n"
STRING_COPYFAIL, "Kopiowanie '%s' do '%s' nie powiodło się - kod błędu %d\n"
STRING_OPENFAIL, "Nie udało się otworzyć '%s'\n"
STRING_READFAIL, "Błąd podczas czytania '%s'\n"
STRING_YES_CHAR, "T"
STRING_NO_CHAR, "N"
STRING_ALL_CHAR, "W"
STRING_FILE_CHAR,"P"
STRING_DIR_CHAR, "K"
STRING_HELP,
"XCOPY - kopiuje pliki lub drzewa katalogów\n\
\n\
Składnia:\n\
XCOPY źródło [cel] [/I] [/S] [/Q] [/F] [/L] [/W] [/T] [/N] [/U] \n\
\t [/R] [/H] [/C] [/P] [/A] [/M] [/E] [/D] [/Y] [/-Y]\n\
\n\
Gdzie:\n\
\n\
[/I] Jeżeli \"cel\" nie istnieje i kopiowane są co najmniej dwa pliki,\n\
\tzakłada, że \"cel\" powien być katalogiem\n\
[/S] Kopiuje katalogi i podkatalogi\n\
[/E] Kopiuje katalogi i podkatalogi, łącznie z pustymi\n\
[/Q] Nie wypisuje nazw plików podczas kopiowania (tryb cichy)\n\
[/F] Wypisuje pełne ścieżki źródłowe i docelowe podczas kopiowania\n\
[/L] Jedynie symuluje operację, pokazując pliki, które byłyby kopiowane\n\
[/W] Prosi o potwierdzenie przed rozpoczęciem kopiowania\n\
[/T] Tworzy puste katalogi, ale nie kopiuje plików\n\
[/Y] Zastępuje pliki bez prośby o potwierdzenie\n\
[/-Y] Zawsze prosi o potwierdzenie przed zastąpieniem pliku\n\
[/P] Prosi o potwierdzenie przed skopiowaniem każdego pliku\n\
[/N] Kopiuje używając krótkich nazw plików\n\
[/U] Kopiuje tylko pliki, które już istnieją w miejscu docelowym\n\
[/R] Zastępuje pliki tylko do odczytu\n\
[/H] Kopiuje również pliki ukryte i systemowe\n\
[/C] Kontynuuje nawet jeżeli podczas kopiowania występiły błędy\n\
[/A] Kopiuje tylko pliki z atrybutem archiwalny\n\
[/M] Kopiuje tylko pliki z atrybutem archiwalny i usuwa ten atrybut\n\
[/D | /D:m-d-y] Kopiuje tylko nowe pliki lub te zmodifikowane po podanej dacie.\n\
\t\tJeżeli nie podano żadnej daty, to kopiowane są pliki, które są\n\
\t\tnowsze niż w katalogu docelowym\n\n"
}

View file

@ -0,0 +1,82 @@
/*
* XCOPY - Wine-compatible xcopy program
* Russian language support
*
* Copyright (C) 2007 J. Edmeades
* Copyright (C) 2007 Kirill K. Smirnov
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
{
STRING_INVPARMS,
"Недопустимое число параметров - попробуйте 'xcopy /?' для получения\n\
подробного описания.\n"
STRING_INVPARM,
"Недопустимый параметр '%s' - попробуйте 'xcopy /?' для получения подробного\n\
описания.\n"
STRING_PAUSE, "Нажмите клавишу <enter>, чтобы начать копирование.\n"
STRING_SIMCOPY, "%d файл(ов) было бы скопировано.\n"
STRING_COPY, "%d файл(ов) скопировано.\n"
STRING_QISDIR, "'%s' является файлом или папкой?\n" \
"(F - Файл, D - Папка)\n"
STRING_SRCPROMPT,"%s? (Yes|No)\n"
STRING_OVERWRITE,"Переписать %s? (Yes|No|All)\n"
STRING_COPYFAIL, "При копировании '%s' в '%s' произошла ошибка: %d\n"
STRING_OPENFAIL, "Невозможно открыть '%s'\n"
STRING_READFAIL, "При чтении '%s' произошла ошибка\n"
STRING_YES_CHAR, "Y"
STRING_NO_CHAR, "N"
STRING_ALL_CHAR, "A"
STRING_FILE_CHAR,"F"
STRING_DIR_CHAR, "D"
STRING_HELP,
"XCOPY - Копирует файлы и деревья папок\n\
\n\
Синтаксис:\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\
Где:\n\
\n\
[/I] Если конечная папка отсутствует и копируется более одного файла, \n\
то предполагается папка в качестве места назначения.\n\
[/S] Копирует папки и подпапки.\n\
[/E] Копирует папки и подпапки, включая пустые.\n\
[/Q] Не отображает имена копируемых файлов.\n\
[/F] Отображает полные имена исходных и конечных файлов.\n\
[/L] Выводит список файлов, которые будут скопированы.\n\
[/W] Запрашивает подтверждение перед началом копирования.\n\
[/T] Создает структуру папок, но не копирует файлы.\n\
[/Y] Подавляет запрос на подтверждение перезаписи файлов.\n\
[/-Y] Запрашивает подтверждение на перезапись файлов.\n\
[/P] Запрашивает подтверждение для каждого копируемого файла.\n\
[/N] Использует короткие имена файлов при копировании.\n\
[/U] Копирует только те файлы, которые уже существуют в конечной папке.\n\
[/R] Перезаписывает файлы, доступные только для чтения.\n\
[/H] Копирует скрытые и системные файлы.\n\
[/C] Продолжает работу, даже если произошла ошибка.\n\
[/A] Копирует только те файлы, для которых установлен атрибут \"архивный\". \n\
[/M] Копирует только те файлы, для которых установлен атрибут \"архивный\",\n\
при этом атрибут удаляется.\n\
[/D | /D:m-d-y] Копирует только новые файлы или те, которые были изменены\n\
после указанной даты. Если дата не указана, копирует только\n\
те файлы, которые новее в исходной папке.\n"
}

View file

@ -0,0 +1,28 @@
/*
* Copyright 2007 Jason Edmeades
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <windef.h>
#include "xcopy.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#include "En.rc"
#include "Ko.rc"
#include "Pl.rc"
#include "Ru.rc"

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,68 @@
/*
* XCOPY - Wine-compatible xcopy program
*
* Copyright (C) 2007 J. Edmeades
*
* 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
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* Local #defines */
#define RC_OK 0
#define RC_NOFILES 1
#define RC_CTRLC 2
#define RC_INITERROR 4
#define RC_WRITEERROR 5
#define OPT_ASSUMEDIR 0x00000001
#define OPT_RECURSIVE 0x00000002
#define OPT_EMPTYDIR 0x00000004
#define OPT_QUIET 0x00000008
#define OPT_FULL 0x00000010
#define OPT_SIMULATE 0x00000020
#define OPT_PAUSE 0x00000040
#define OPT_NOCOPY 0x00000080
#define OPT_NOPROMPT 0x00000100
#define OPT_SHORTNAME 0x00000200
#define OPT_MUSTEXIST 0x00000400
#define OPT_REPLACEREAD 0x00000800
#define OPT_COPYHIDSYS 0x00001000
#define OPT_IGNOREERRORS 0x00002000
#define OPT_SRCPROMPT 0x00004000
#define OPT_ARCHIVEONLY 0x00008000
#define OPT_REMOVEARCH 0x00010000
#define OPT_EXCLUDELIST 0x00020000
#define OPT_DATERANGE 0x00040000
#define OPT_DATENEWER 0x00080000
#define MAXSTRING 8192
/* Translation ids */
#define STRING_INVPARMS 101
#define STRING_INVPARM 102
#define STRING_PAUSE 103
#define STRING_SIMCOPY 104
#define STRING_COPY 105
#define STRING_QISDIR 106
#define STRING_SRCPROMPT 107
#define STRING_OVERWRITE 108
#define STRING_COPYFAIL 109
#define STRING_OPENFAIL 110
#define STRING_READFAIL 111
#define STRING_YES_CHAR 112
#define STRING_NO_CHAR 113
#define STRING_ALL_CHAR 114
#define STRING_FILE_CHAR 115
#define STRING_DIR_CHAR 116
#define STRING_HELP 117

View file

@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!DOCTYPE module SYSTEM "../../../tools/rbuild/project.dtd">
<module name="xcopy" type="win32cui" installbase="system32" installname="xcopy.exe" allowwarnings="true" unicode="true">
<include base="xcopy">.</include>
<library>kernel32</library>
<library>advapi32</library>
<library>user32</library>
<file>xcopy.c</file>
<file>xcopy.rc</file>
<metadata description="xcopy command-line tool" />
</module>

View file

@ -0,0 +1,17 @@
#include <windows.h>
#include <commctrl.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#define REACTOS_VERSION_DLL
#define REACTOS_STR_FILE_DESCRIPTION "xcopy command\0"
#define REACTOS_STR_INTERNAL_NAME "xcopy\0"
#define REACTOS_STR_ORIGINAL_FILENAME "xcopy.exe\0"
#include <reactos/version.rc>
#include "rsrc.rc"