powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / C++ [игнор отключен] [закрыт для гостей] / Builder v.5 команда копирования файла в Windows ?
4 сообщений из 4, страница 1 из 1
Builder v.5 команда копирования файла в Windows ?
    #32215182
Tina
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Пожалуйста, подскажите как в Buildere скопировать файл из одной директории в другую. В Delphi есть просто команда CopyFile. В help искала - пока безуспешно :(
заранее, спасибо :)
...
Рейтинг: 0 / 0
Builder v.5 команда копирования файла в Windows ?
    #32215187
Фотография JibSkeart
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
ну дык Делфи и Билдер близнецы братья просто
синтаксис разный (как характер )...
...
Рейтинг: 0 / 0
Builder v.5 команда копирования файла в Windows ?
    #32215195
alex_k
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
плохо искала

winbase.h

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.
...
Рейтинг: 0 / 0
Builder v.5 команда копирования файла в Windows ?
    #32215211
Tina
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
большое Спасибо :)
...
Рейтинг: 0 / 0
4 сообщений из 4, страница 1 из 1
Форумы / C++ [игнор отключен] [закрыт для гостей] / Builder v.5 команда копирования файла в Windows ?
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]