From research I have found so many ways to upload files / documents from File server or from local desktop to SharePoint document library. There are lots of JavaScript available to achieve this goal.
But using these methods end user definitely becomes crazy.
Here I have used a very simple method which automatically uploads document from source folder to SharePoint document library.
Following steps we have to implement to use this method.
· On your machine map a SharePoint site, make sure to create a mapped drive of SharePoint site (not a network place)
· This will assign a letter to site (i.e. Z), and this will create a SharePoint site as a folder.
· So now we have “Z” drive which contains our SharePoint site and all its content and when you navigate to any of the content make sure it will open a folder with “z:\content folder” (as simple as opening a local folder in C / D drive)
· Now we have two local drives one is Source folder and one is SharePoint site.
· Now run following command to check whether we are able to copy documents from one location to another (From local source folder to SharePoint site)
COPY “sourcefolder\filename” “destination (SharePoint Site)”
Copy c:\Pratik\*.* z:\Documents
· (Above command will copy all files from “C:\Pratik” folder to SharePoint site)
· If this will be done successfully then simply create a batch file which copies documents on a click
· And to make this click automated put that batch file in windows task scheduler so that @ a specific time frame it will run and picks up document from local source folder and uploads it to SharePoint site.
· You might face some issues while making map drive, to resolve it follow these steps
On Windows XP machine
· Right click “My Computer” > Map Network Drive
· It will open a wizard, provide SharePoint site name with UNC path (i.e file://servername/folder)
· If you will get any error please chec webclient is activated on the machine.
On Windows 7 machine
· Right click “My Computer” > Map Network Drive
· It will open a wizard, provide SharePoint site name same as you provide in explorer address bar (http://sitename/)
Suggations and feedbacks are always welcome J. Feel free to reach me n case of any issues.
No comments:
Post a Comment