Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copy Folder Tree Pin
Naveen29-Sep-08 21:25
Naveen29-Sep-08 21:25 
GeneralRe: Copy Folder Tree [modified] Pin
TeVc++29-Sep-08 22:06
TeVc++29-Sep-08 22:06 
GeneralRe: Copy Folder Tree Pin
Naveen29-Sep-08 22:12
Naveen29-Sep-08 22:12 
GeneralRe: Copy Folder Tree Pin
TeVc++29-Sep-08 22:17
TeVc++29-Sep-08 22:17 
GeneralRe: Copy Folder Tree Pin
Naveen29-Sep-08 22:19
Naveen29-Sep-08 22:19 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 18:34
TeVc++30-Sep-08 18:34 
GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 18:44
Naveen30-Sep-08 18:44 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 19:55
TeVc++30-Sep-08 19:55 
Thank It's a working for only Directory.It's not copy File which is exit in directory.So plz help me

I am useing this code

int aq;
CString Source[100];
	CString Destination;
	for(aq=0;aq<10;aq++)
	{
	

	Destination = _T("C:\\");
	Destination += PathFindFileName(Source[aq]);
	
   HRESULT hr;
   SHFILEOPSTRUCT sfo;

   ZeroMemory(&sfo,sizeof(sfo));

   sfo.hwnd = NULL;
   sfo.wFunc = FO_COPY;
   sfo.pFrom = Source[aq];
   sfo.pTo = Destination;
   sfo.fFlags = FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOCONFIRMMKDIR;

   hr = SHFileOperation(&sfo);
	

   return (SUCCEEDED(hr));
	}

GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 20:00
Naveen30-Sep-08 20:00 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 20:54
TeVc++30-Sep-08 20:54 
GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 20:56
Naveen30-Sep-08 20:56 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 21:48
TeVc++30-Sep-08 21:48 
GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 21:57
Naveen30-Sep-08 21:57 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 22:04
TeVc++30-Sep-08 22:04 
GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 22:18
Naveen30-Sep-08 22:18 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 23:28
TeVc++30-Sep-08 23:28 
GeneralRe: Copy Folder Tree Pin
Naveen30-Sep-08 23:31
Naveen30-Sep-08 23:31 
GeneralRe: Copy Folder Tree Pin
TeVc++30-Sep-08 23:38
TeVc++30-Sep-08 23:38 
GeneralRe: Copy Folder Tree Pin
Sauce!1-Oct-08 5:27
Sauce!1-Oct-08 5:27 
GeneralRe: Copy Folder Tree Pin
TeVc++2-Oct-08 18:54
TeVc++2-Oct-08 18:54 
GeneralRe: Copy Folder Tree Pin
Sauce!3-Oct-08 3:03
Sauce!3-Oct-08 3:03 
QuestionHow do I pass MySQL connection ID to COM using VC++ 9.0? Pin
Ger Hayden29-Sep-08 19:48
Ger Hayden29-Sep-08 19:48 
QuestionHow to get Exchange server permission Pin
Member 443453629-Sep-08 19:09
Member 443453629-Sep-08 19:09 
QuestionProblem using CLR in MFC ActiveX controls Pin
astibich229-Sep-08 18:27
astibich229-Sep-08 18:27 
QuestionReading Excel File Pin
ganychina29-Sep-08 18:07
ganychina29-Sep-08 18:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.