Creating a SharePoint List item and new directories on network share from Visual Basic 2010
Posted on 2013-01-11
I am working on a small windows form application using Visual Basic 2010.
I am looking to accomplish 2 things. (FYI - #1, I got - I need some help with #2)
1. Create a program/windows form (with the following fields: FirstName, LastName, CustomerNumber, and a button to click labeled "create folders") for my employees to fill out that will create several empty folders on a windows network share.
The purpose for doing this is to create some commonality for how my employees manage their folders on my network share. Note: I do not want users to save files to share point.
I have already achieved this quite easily using My.Computer.FileSystem.CreateDirectory _
("Z:\" & CustomerName & CustomerNumber) and so on for the subdirectories.
2. I created a SharePoint List called "Customers" With 3 fields (FirstName, LastName, and Folder). I want the "Folder" column to be formatted as a hyperlink that links to the appropriate folder (and opens a windows explorer window to that location) which was just created at the same time when my employees click the "create folders" button.
I am not a strong VB programmer and am seeking example code to "create a sharepoint list item" to accomplish this task.
Please let me know if you can help.