|
b.txt --> B 要是不行的话,有别的什么方法可以实现呢?恳请赐教!(要求只生成一次进度对话框的呀!) |
|
|
http://www.codeguru.com/files/SHFILEOPSTRUCT.shtml
Command what is yours Conquer what is not |
|
|
|
可以道MSDN上查!
楼上那位什么意思: Command what is yours Conquer what is not |
|
|
char pzFrom[] = "f:\\test.avi\0f:\\K4A030912.EXE\0\0";
char pzTo[] = "f:\\a\\test.avi\0f:\\b\\K4A030912.EXE\0\0"; SHFILEOPSTRUCT shfos; shfos.hwnd = this->m_hWnd; shfos.wFunc = FO_COPY; shfos.pFrom = pzFrom; shfos.pTo = pzTo; shfos.fFlags = FOF_MULTIDESTFILES|FOF_SIMPLEPROGRESS|FOF_NOCONFIRMMKDIR ; shfos.fAnyOperationsAborted = TRUE; shfos.lpszProgressTitle = "文件复制"; SHFileOperation(&shfos); |
|
方法1 传递命名映射给SHFileOperation函数
方法2 使用IProgressDialog接口 Command what is yours Conquer what is not |
|
|
|
文件夹可以吗?比如
a --> A b --> B |
|