Moving Files In SharePoint

SharePoint’s SiteManager is a great tool to manipulate folders and files; however, it can sometimes fall short at times when a massive amount files need to be relocated. With proper permissions, you can get around this by using Windows Explorer instead. PLEASE NOTE: When moving a mass of files around in this manner, you can lose certain file details — such as history data.

Moving Files in SharePoint Via Windows Explorer:

1. Open up your SharePoint page in internet explorer and copy the path (ie, http://dime/sites/yoursite).

2. Open up windows explorer and navigate to your web folders.

3. Right click on ‘Web Folders’ and select ‘New’.

4. Enter your path from step 1 and, like magic, you can drag and drop your files! 😀

Convert Comma-Delimited String To Array & Loop

–set whatever delimiter you want to use:
char delimiter = ‘,’;

–Get the string you want to turn to an array (in this case, I use the app.config)
string s = ConfigurationManager.AppSettings[“StringToReplace”];

–Declare an array for your string
string[] stringToReplace = s.Split(delimiter);

–Finally, if you want to loop through your new array:
string content = String.Empty;

for (int j = 0; j <> 0; j++)
{
content = stringToReplace[j];
}

Error: Option Strict On disallows operands of type Object for operator ‘<>‘.

This is a fairly easy error to fix :

Error 55 Option Strict On disallows operands of type Object for operator ‘<>‘. Use the ‘Is’ operator to test for object identity.

Chances are, you have a line of code like this:

If (Me._item <> Value) Then

Change it to this:

If Not (Me._item Is Value) Then

Of course, you could always try setting Option Strict off, but that is usually not the best practice.