LRESULT CWizardFoldersPage::OnWizardNext() { CWaitCursor pCursor; CreateDirectory( m_sDownloadsPath ); CreateDirectory( m_sIncompletePath ); CreateDirectory( m_sTorrentsPath ); if ( m_sIncompletePath != Settings.Downloads.IncompletePath && Settings.Library.UseCustomFolders ) { // Set desktop.ini CLibraryFolder* pFolderNew = new CLibraryFolder( NULL, m_sIncompletePath ); pFolderNew->Maintain( TRUE ); CLibraryFolder* pFolderOld = new CLibraryFolder( NULL, Settings.Downloads.IncompletePath ); pFolderOld->Maintain( FALSE ); } Settings.Downloads.CompletePath = m_sDownloadsPath; Settings.Downloads.IncompletePath = m_sIncompletePath; Settings.Downloads.TorrentPath = m_sTorrentsPath; UpdateData( FALSE ); //LibraryFolders.AddFolder( m_sDownloadsPath ); //LibraryFolders.AddFolder( m_sTorrentsPath ); DoDonkeyImport(); return 0; }