Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "WinAPI";
Текущий архив: 2003.08.25;
Скачать: [xml.tar.bz2];

Вниз

SHFileOperation   Найти похожие ветки 

 
Igor__   (2003-06-24 18:58) [0]

Как при помощи этой процедуры скопировать несколько файлов? Если копирорвать по-очериди то будет много окон копирования, а мне нужно, чтобы скопировать много файлов(с разных частей винта) и было одно окошко копирования.

И ещё можно ли скопировать разные файлы в разные каталоги под одним диалогом копирования?


 
Suntechnic   (2003-06-24 19:18) [1]

Из описания
SHFILEOPSTRUCT Structure

Как при помощи этой процедуры скопировать несколько файлов? Если копирорвать по-очериди то будет много окон копирования, а мне нужно, чтобы скопировать много файлов(с разных частей винта) и было одно окошко копирования
pFrom
...Although this member is declared as a null-terminated string, it is used as a buffer to hold multiple file names. Each file name must be terminated by a single NULL character. An additional NULL character must be appended to the end of the final name to indicate the end of pFrom.

И ещё можно ли скопировать разные файлы в разные каталоги под одним диалогом копирования?
pTo
Address of a buffer to contain the name of the destination file or directory. This parameter must be set to NULL if it is not used. Like pFrom, the pTo member is also a double-null terminated string and is handled in much the same way. However, pTo must meet the following specifications:
Wildcard characters are not supported.
Copy and Move operations can specify destination directories that do not exist and the system will attempt to create them. The system normally displays a dialog box to ask the user if they want to create the new directory. To suppress this dialog box and have the directories created silently, set the FOF_NOCONFIRMMKDIR flag in fFlags.
For Copy and Move operations, the buffer can contain multiple destination file names if the fFlags member specifies FOF_MULTIDESTFILES.
Pack multiple names into the string in the same way as for pFrom.
Use only fully-qualified paths. Using relative paths will have unpredictable results.




Страницы: 1 вся ветка

Форум: "WinAPI";
Текущий архив: 2003.08.25;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.01 c
1-81677
Zheks
2003-08-11 16:50
2003.08.25
Типизированный файл


14-81960
acsoft
2003-07-30 07:31
2003.08.25
OnHint


3-81576
Иванов Сергей
2003-07-29 17:38
2003.08.25
Commit vs CommitRetaining


6-81855
BJValentine
2003-06-17 16:28
2003.08.25
Сокеты Windows


1-81618
Behemoth
2003-08-14 11:09
2003.08.25
Импорт в Excel.





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский