Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Прочее";
Текущий архив: 2009.07.26;
Скачать: [xml.tar.bz2];

Вниз

Как соединить много текстовых файлов...   Найти похожие ветки 

 
xenonxenon   (2009-04-27 01:56) [0]

Есть большое количество текстовых файлов (с нетекстовым расширением) как их соединить вместе в один (сложить) Windows-средствами?... Последовательное добавление в Блокноте не предлагать...


 
Игорь Шевченко ©   (2009-04-27 02:12) [1]

copy file1 + file2 + file3 соединенный-файл


 
Германн ©   (2009-04-27 02:14) [2]


> xenonxenon   (27.04.09 01:56)
>
> Есть большое количество текстовых файлов (с нетекстовым
> расширением) как их соединить вместе в один (сложить) Windows-
> средствами?

Лентяй?
:)


 
Германн ©   (2009-04-27 02:16) [3]


> Игорь Шевченко ©   (27.04.09 02:12) [1]

"большое количество" не влезет в допустимые размеры. :)


 
xenonxenon   (2009-04-27 02:16) [4]

Игорь Шевченко ©   (27.04.09 02:12) [1]
Там сложные имена все их перечислять долго, я пробовал копировать и вставлять в Word, но он копирует значки...


 
xenonxenon   (2009-04-27 02:40) [5]

Германн ©   (27.04.09 02:14) [2]
Лентяй?
:)

Неужели для такой простой функции нужно всё делать вручную?


 
KilkennyCat ©   (2009-04-27 03:02) [6]


> Там сложные имена все их перечислять долго

сopy *.* r.t

COPY

Copies one or more files to the location you specify.

This command can also be used to combine files. When more than one file is
copied, MS-DOS displays each filename as the file is copied.

Syntax

COPY [/Y|/-Y] [/A|/B] source [/A|/B] [+ source [/A|/B] [+
...]][destination [/A|/B]] [/V]

Parameters

source
Specifies the location and name of a file or set of files from which you
want to copy. Source can consist of a drive letter and colon, a
directory name, a filename, or a combination.

destination
Specifies the location and name of a file or set of files to which you
want to copy. Destination can consist of a drive letter and colon, a
directory name, a filename, or a combination.

Switches

/Y
Indicates that you want COPY to replace existing file(s) without
prompting you for confirmation. By default, if you specify an existing
file as the destination file, COPY will ask you if you want to overwrite
the existing file. (Previous versions of MS-DOS would simply replace the
existing file.) If the COPY command is part of a batch file, COPY will
behave as in previous versions. Specifying this switch overrides all
defaults and the current setting of the COPYCMD environment variable.

/-Y
Indicates that you want COPY to prompt you for confirmation when
replacing an existing file. Specifying this switch overrides all
defaults and the current setting of the COPYCMD environment variable.

/A
Indicates an ASCII text file. When the /A switch precedes the list of
filenames on the command line, it applies to all files whose names
follow the /A switch, until COPY encounters a /B switch, in which case
the /B switch applies to the file whose name precedes the /B switch.

When the /A switch follows a filename, it applies to the file whose name
precedes the /A switch and to all files whose names follow the /A
switch, until COPY encounters a /B switch, in which case the /B switch
applies to the file whose name precedes the /B switch.

An ASCII text file can use an end-of-file character (CTRL+Z) to indicate
the end of the file. When combining files, COPY treats files as ASCII
text files by default.

/B
Indicates a binary file. When the /B switch precedes the list of
filenames on the command line, it applies to all files whose names
follow the /B switch, until COPY encounters an /A switch, in which case
the /A switch applies to the file whose name precedes the /A switch.

When the /B switch follows a filename, it applies to the file whose name
precedes the /B switch and to all files whose names follow the /B
switch, until COPY encounters an /A switch, in which case the /A switch
applies to the file whose name precedes the /A switch.

The /B switch specifies that the command interpreter is to read the
number of bytes specified by the file size in the directory. The /B
switch is the default value for COPY unless COPY is combining files.

/V
Verifies that new files are written correctly.

Related Command

For information about copying directories and subdirectories, see the
command.

EXAMPLES

To copy several files into one file, list any number of files as source
parameters on the COPY command line. Separate filenames with a plus sign (+)
and specify a filename for the resulting combined file, as the following
example shows:

copy mar89.rpt + apr89.rpt + may89.rpt report

This command combines the files named MAR89.RPT, APR89.RPT, and MAY89.RPT
from the current drive and directory and places them in a file named REPORT
in the current directory on the current drive. When files are combined, the
destination file is created with the current date and time. If you omit
destination, MS-DOS combines the files and stores them under the name of the
first specified file. For example, if a file named REPORT already exists,
you can use the following command to combine all four files in REPORT:

copy report + mar89.rpt + apr89.rpt + may89.rpt

If you want to combine several binary files into one by using wildcards,
include the /B switch, as the following example shows:

copy /b *.exe combin.exe

This prevents MS-DOS from treating CTRL+Z as an end-of-file character.

CAUTION: If you combine binary files, the resulting file might not be
usable due to internal formatting.


 
KilkennyCat ©   (2009-04-27 03:03) [7]


> Германн ©   (27.04.09 02:14) [2]
> Лентяй?
> :)

Нет, просто безграмотное.


 
Игорь Шевченко ©   (2009-04-27 03:34) [8]


> как их соединить вместе в один (сложить) Windows-средствами?
> ...


copy - это даже не windows, это dos-средство


 
TUser ©   (2009-04-27 08:18) [9]

cat

cygwin обязан стоять везде типа :)


 
palva ©   (2009-04-27 09:16) [10]


> Последовательное добавление в Блокноте не предлагать...


> Там сложные имена все их перечислять долго, я пробовал копировать
> и вставлять в Word, но он копирует значки...

То есть вы брезгуете пользоваться блокнотом и хотите для этой цели использовать Word. Это тоже можно. Каждый файл нужно предварительно открыть в Word как текстовый, потом скопировать его содержимое и вставить в конец вордовской страницы результата. При ее сохранении не забыть указать текстовый формат.

Сейчас задумался, нельзя ли для этой цели использовать Photoshop.


 
Anatoly Podgoretsky ©   (2009-04-27 09:24) [11]

> palva  (27.04.2009 9:16:10)  [10]

Обычно для этой цели используют PowerPoint


 
TUser ©   (2009-04-27 09:36) [12]

ну ворд можно автоматизировать при помощи бейсика  :)


 
boriskb ©   (2009-04-27 10:59) [13]

Программист?

Похоже на инженера-механика, задающего вопрос "как открутить гайку?"
Или выпусника высших курсов поваров с вопросом "А чтоб солёно было, что  и сколько нужно в суп сыпать?"


 
KilkennyCat ©   (2009-04-27 12:14) [14]


> нельзя ли для этой цели использовать Photoshop.

только для текстов из растровых шрифтов.
Если из векторных - КорелДроу


 
xenonxenon   (2009-04-27 19:37) [15]

KilkennyCat ©   (27.04.09 03:02) [6]
Thanks


 
имя   (2009-05-25 12:19) [16]

Удалено модератором


 
имя   (2009-05-25 12:19) [17]

Удалено модератором


 
имя   (2009-05-25 12:19) [18]

Удалено модератором


 
имя   (2009-05-25 12:19) [19]

Удалено модератором


 
имя   (2009-05-25 12:19) [20]

Удалено модератором


 
имя   (2009-05-25 12:19) [21]

Удалено модератором


 
имя   (2009-05-25 12:19) [22]

Удалено модератором


 
имя   (2009-05-25 12:19) [23]

Удалено модератором


 
имя   (2009-05-25 12:20) [24]

Удалено модератором


 
имя   (2009-05-25 12:20) [25]

Удалено модератором


 
имя   (2009-05-25 12:20) [26]

Удалено модератором


 
имя   (2009-05-25 12:20) [27]

Удалено модератором


 
имя   (2009-05-25 12:20) [28]

Удалено модератором



Страницы: 1 вся ветка

Форум: "Прочее";
Текущий архив: 2009.07.26;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.51 MB
Время: 0.007 c
3-1224582415
Ega23
2008-10-21 13:46
2009.07.26
Что означает следующий exception:


2-1243410156
Ольга
2009-05-27 11:42
2009.07.26
Не отображается иконка приложения на панеле задач


2-1243397495
Алексей Иванов
2009-05-27 08:11
2009.07.26
Свойство TTreeView.Parent


3-1224485366
Konrads
2008-10-20 10:49
2009.07.26
Использование FireBird на WWW


2-1243571683
Gans
2009-05-29 08:34
2009.07.26
Сообщение при свернутом окне





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский