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

Вниз

Копирование файлов   Найти похожие ветки 

 
Hatawa   (2003-11-09 08:53) [0]

Скажите, плиз, как программно скопировать файл из одного места в другое?


 
Zew   (2003-11-09 09:22) [1]

Copyfile +F1


 
Lancelot   (2003-11-09 09:31) [2]

The CopyFile function copies an existing file to a new file.

BOOL CopyFile(

LPCTSTR lpExistingFileName, // pointer to name of an existing file
LPCTSTR lpNewFileName, // pointer to filename to copy to
BOOL bFailIfExists // flag for operation if file exists
);


Parameters

lpExistingFileName

Points to a null-terminated string that specifies the name of an existing file.

lpNewFileName

Points to a null-terminated string that specifies the name of the new file.

bFailIfExists

Specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.



Return Values

If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

Security attributes for the existing file are not copied to the new file.
File attributes (FILE_ATTRIBUTE_*) for the existing file are copied to the new file. For example, if an existing file has the FILE_ATTRIBUTE_READONLY file attribute, a copy created through a call to CopyFile will also have the FILE_ATTRIBUTE_READONLY file attribute. For further information on file attributes, see CreateFile.

See Also

CreateFile, MoveFile


 
Hatawa   (2003-11-09 09:33) [3]

нет такой функции


 
Hatawa   (2003-11-09 09:34) [4]

О! Нашла! thanks!


 
app   (2003-11-09 10:41) [5]

Lancelot © (09.11.03 09:31) [2]
У тебя есть подозрение, что у него/у нее отсутствует справочная система?


 
Lancelot   (2003-11-09 11:24) [6]

Ну что Вы смеетесь, человек на бронепоезде.


 
app   (2003-11-09 11:33) [7]

Это не смех, это предупреждение, чтобы больше так не делал, в дальнейсем просто укажи только тему в справке. Цитирование их справки допустимо в случая приведения отдельных моментов, когда это требуется в контексте.

Ты готов оплачивать трафик других участников из своего кармана?


 
Lancelot   (2003-11-09 11:39) [8]

OK, понял.


 
Hatawa   (2003-11-10 13:53) [9]

To Lancelot:

Я думаю, что здесь не место оскорблять людей.
Мне казалось, что здесь задают вопросы... Кто-то знает на них ответ, кто-то нет - потому и задают. Я бы и без тебя разобралась, а с пренебрежением относиться не стоит



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

Форум: "Основная";
Текущий архив: 2003.11.20;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.46 MB
Время: 0.01 c
1-65885
Кен
2003-11-08 04:13
2003.11.20
Почему то перестала работать такая важная процедура как beep.


6-66042
SergeySEM
2003-09-23 13:06
2003.11.20
Что есть Port,Host,IP


9-65687
bss
2003-05-15 13:05
2003.11.20
загрузка процессора


1-65891
rolex
2003-11-07 22:16
2003.11.20
Как по всему диску C: удалить файлы с расширением *.tmp ???


3-65781
DmTM
2003-10-30 12:59
2003.11.20
данные из ADODataSet пропадают после закрытия соединения, ПОЧЕМУ?





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский