I used to link to this
http://support.microsoft.com/default.aspx/kb/287515
But it now needs to go here
http://support.microsoft.com/en-us/kb/287515
I used to link to this
http://support.microsoft.com/default.aspx/kb/287515
But it now needs to go here
http://support.microsoft.com/en-us/kb/287515
You can use this syntax to remove any trailing slash ‘\’ to a path and add it back in if it’s a string.
# Remove slash $OutPath = $Path.TrimEnd('\') # Remove if exists and add back in $OutPath = $Path.TrimEnd('\') + '\'