I am trying to use the 'split' function to separate a string into 2 variables. The string "$dir" contains something like: \\server\share//folder/subfolder.
I cannot figure out how to split these with the split function. Here is the peice of code I have right now, although it doesn't work.