我急需一种工具,能够将SharePoint 2003网站上的文档及其旧版本复制到SharePoint 2007网站上。
您是否知道有任何简单(最好是免费)的工具可以实现这一功能?
我急需一种工具,能够将SharePoint 2003网站上的文档及其旧版本复制到SharePoint 2007网站上。
您是否知道有任何简单(最好是免费)的工具可以实现这一功能?
splistcp工作得非常好,但是有时在尝试移动文件时会出现超时错误。我收到了一个超时消息,然后是一个文件找不到的消息,然后程序就退出了。我下载了源代码,在MBSPListItemsMap.cs中发现程序正在尝试获取文件。
我在大约620行左右的catch代码周围添加了一个finally块,以写入控制台告诉我系统正在做什么:
` catch (Exception e)
{
Console.WriteLine(e.Message);
bDownloadError = true;
}
finally
{
if (bDownloadError)
{
Console.WriteLine("Error in downloading file: " + fileName);
Console.WriteLine("Moving to next file");
}
}
if (!bDownloadError)
{
if (Program.beVerbose)
{
Console.WriteLine("Attaching " + fileName);
}
byte[] fileContents = MBSPSiteMap.ByteArrayFromFilePath(downloadPath);
newItem.Attachments.Add(fileName, fileContents);
File.Delete(downloadPath);
} `