Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.11.20;
Скачать: CL | DM;

Вниз

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

 
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;
Скачать: CL | DM;

Наверх




Память: 0.48 MB
Время: 0.017 c
4-66174
SH
2003-09-25 19:18
2003.11.20
Устойчивый PopUpMenu


1-65892
Санёк
2003-11-08 19:58
2003.11.20
Уважаемые МАСТЕРА!


3-65785
big_bugzy
2003-10-30 15:57
2003.11.20
Как запросом сделать конкатенацию всех строковых значений


1-65942
JL
2003-11-10 21:51
2003.11.20
защита программ


14-66131
mOOx_
2003-10-28 15:09
2003.11.20
ODBC