I’m working with a SVN post-commit hook, and need to extract the last piece of info after a \ in a path.
Basically I need to get testName from:
C:\Program Files (x86)\WANDisco\uberSVN\testName
Where that string is in a variable, repoName.
Completely wrong language, but in PHP, i’d explode() the string at the \, then get the last item in the array. I hope this is easy, but VBScript is completely foreign to me.
Try using the FileSystemObject: