• Курсы Академии Кодебай, стартующие в мае - июне, от команды The Codeby

    1. Цифровая криминалистика и реагирование на инциденты
    2. ОС Linux (DFIR) Старт: 16 мая
    3. Анализ фишинговых атак Старт: 16 мая Устройства для тестирования на проникновение Старт: 16 мая

    Скидки до 10%

    Полный список ближайших курсов ...

работа с каталогами

  • Автор темы Programmer_Hard
  • Дата начала
Статус
Закрыто для дальнейших ответов.
P

Programmer_Hard

Есть ли api -шные функции реализующие копирование файлов и каталогов с файлами?
Мне нужно отображать процесс копирования
 
E

European

Вот цитата из MSDN:
Directory Management Functions
The following functions are used in directory management.

CreateDirectory - Creates a new directory.
CreateDirectoryEx - Creates a new directory with the attributes of a specified template directory.
CreateFile - Creates or opens a file object.
DeleteFile - Deletes an existing file.
FindCloseChangeNotification - Stops change notification handle monitoring.
FindFirstChangeNotification - Creates a change notification handle.
FindFirstFile - Searches a directory for a file or subdirectory whose name matches the specified name.
FindFirstFileEx - Searches a directory for a file or subdirectory whose name and attributes match those specified.
FindNextChangeNotification - Requests that the operating system signal a change notification handle the next time it detects an appropriate change.
FindNextFile - Continues a file search.
GetCurrentDirectory - Retrieves the current directory for the current process.
MoveFile - Moves an existing file or a directory.
MoveFileEx - Moves an existing file or a directory.
ReadDirectoryChangesW - Retrieves information describing the changes occurring within a directory.
RemoveDirectory - Deletes an existing empty directory.
SetCurrentDirectory - Changes the current directory for the current process.

Копировать директории вместе с файлами стандартными средствами нельзя
 
E

European

В принципе, если тебя это устроит, то можно воспользоваться сервисами ОС - SHFileOperation.
 
Статус
Закрыто для дальнейших ответов.
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!