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

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

Programmer_Hard

Есть ли api -шные функции реализующие копирование файлов и каталогов с файлами?
Мне нужно отображать процесс копирования
 
Вот цитата из 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.

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

Взломай свой первый сервер и прокачай скилл — Начни игру на HackerLab

🚀 Первый раз на Codeby?
Гайд для новичков: что делать в первые 15 минут, ключевые разделы, правила
Начать здесь →
🔴 Свежие CVE, 0-day и инциденты
То, о чём ChatGPT ещё не знает — обсуждаем в реальном времени
Threat Intel →
💼 Вакансии и заказы в ИБ
Pentest, SOC, DevSecOps, bug bounty — работа и проекты от проверенных компаний
Карьера в ИБ →

HackerLab