Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.47 MB
Время: 0.02 c
1-65992
Sandman25
2003-11-10 12:45
2003.11.20
Изменение исходников Delphi


7-66148
СергейК
2003-09-11 14:29
2003.11.20
Нужен переключатель целой и дробной части в windows


7-66146
Zero Ice
2003-09-11 17:43
2003.11.20
Printers


3-65779
Ozone
2003-10-29 12:03
2003.11.20
Использование ADO в своих приложениях


1-65856
RoLeX
2003-11-09 18:15
2003.11.20
Как сделать невидимым консольное приложение ??




   Наверх