Transferring files between SharePoint pages can sometimes be tricky and often time consuming. When we transfer files from WSS to MOSS, there is no native method of testing for file compatibility and version between the current SharePoint 2003 page and the MOSS 2007 site. We will use ROBOCOPY from Windows Server 2003 Resource Kit Tools to transfer data from the current archive to local sharing that can be encrypted and sent to send. Follow the instructions described below:
First, you need to install Windows Server 2003 Resource Kit Tools to either Windows XP desktop or Server 2003 server on which the SharePoint 2003 site is located. Once set you up, will ROBOCOPY command line tool for use. The tools will reside in "C: Program Files Windows Resource Kits Tools" and can be accessed by command line or shortcut in "Command Shell" through the Windows Resource Kit Tools program folder created in the Start Menu.  The next step will be to map the current SharePoint 2003 archive to the network on the computer or server on which Robocopy is installed. This can be done by going to My Computer, and then selecting Map Network Drive from the Tools File menu. In the window that appears, select a drive letter that is available and not in use, and also enter Folder. The folder name will be formatted in the following way, for example: http: \ example.phase2.com Docs DocLibrary, where example.phase2com is the webpage or email address used to access the site, Docs is the subfield if the library is in a sub area and DocLibrary is the name of the archive we are about to export files from. When mapped, it should display the contents of the archive within the root of this drive.
Finally, we need to transfer the data from the archive to a file folder for storage and subsequent updates. For example, the data we will export data that has changed date 04/18/2008. You must first open the command offer to use robocopy. Once in command prompt, you need to use robocopy command line tool as follows:
robocopy z: * d: fileshare * / E / Z / COPY: DAT / MAXAGE: 20080418
here Above example, these are the prerequisites and switches used.
o z: * – Files, in this case, we have mapped the archive that is being exported to the Z: network drive on the computer
o d: fileshare * – File destination, where fileshare is a local drive on the computer
o / S – Copy subfolders and exclude empty ones
o / Z – Duplicate mode
o / COPY: DAT – copies file data, attributes and scheduling
o / MAXAGE: 20080418 – Copies Files with Last Modification Date 04-18-2008 and newer (Excludes files with last change date that is before 04-18-2008)
Running the script above will have robocopy read in through the mapped drive and copy only those files that are newer than the date. Once export is completed, the customer will then be able to upload those files to us to upload to their MOSS site.
The above must be run for each archive they want to export and transfer only new / updated data. This is because we can only map the archive from SharePoint and not the entire page.