A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq

Tuesday, February 13, 2007

WS-Downloader Web Part

WS-Downloader Web Part
I released WS-Downloader tool last week. WS-Downloader is a small tool that downloads documents from SharePoint libraries.
Click here to read more about the WS-Downloader tool.
Today, I re-wrote the same application as a web part. Now, you can plug this web part directly in your site.
Installation Instructions
1. Copy the wsdlcab.CAB file to the following location on the server:
C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12 in
This location also contains stsadm.exe file.
2. From the location mentioned in Step 1, run the following command:
stsadm -o addwppack -filename wsdlcab.CAB -url http://localhost -globalinstall -force
(Change localhost to your servername.)
3. Run following command to reset IIS:
iisreset /timeout:0
4. Now, add the web part to a SharePoint site. Open the SharePoint site in a web browser.
5. Click Site Actions and select Edit Page.
6. Click Add a Web Part (in Right zone).
7. Expand All Web Parts by clicking the + button.
8. Select WS-SharePoint Documents Downloader from the Miscellaneous section.
9. Click the Publish button to publish the changes.
10. Now, test the web part by entering a library path in the first text box and a destination path in the second text box and clicking the Download button. This will download the documents to the destination folder and a message will be displayed in the web part.
Delete Web Part
1. Go to following location on the server:
C:Program FilesCommon FilesMicrosoft Sharedweb server extensions12 in
2. Run following command to remove the web part.
stsadm -o deletewppack -name wsdlcab.cab -url http://localhost
(Change localhost to your servername.)
Advantage
Now, you can run the application remotely and save the files to a local folder on the server. Remember, you still can not save the files to the client machine. For that, we need to write a web service and run the download application locally. To download the files to a folder on the server from a client machine, open the site in a web browser on the client machine. Select source and destination paths and click the Download button.