Главная страница
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.036 c
1-65881
Win error
2003-11-09 08:25
2003.11.20
консольное приложение


1-65955
AndreyA
2003-11-10 09:35
2003.11.20
Scroll


1-65830
X-Disa
2003-11-09 13:11
2003.11.20
Экран


3-65732
Виталя
2003-10-31 10:35
2003.11.20
Необязательный параметр хранимой процедуры


1-65959
Kelvin
2003-11-10 21:21
2003.11.20
Таблица