I am trying to write a check into a script that makes sure the file is being run from a specific location.
Let's say the script is located at //candy/gum/scripts/Patch.vbs
I want to parse the ScriptFullName using / as a delimiter and making sure "candy" (the server the script is on) is in it. If it is, it will proceed.
If there's another way of doing this, by all means inform me. Thanks in advance.
Let's say the script is located at //candy/gum/scripts/Patch.vbs
I want to parse the ScriptFullName using / as a delimiter and making sure "candy" (the server the script is on) is in it. If it is, it will proceed.
If there's another way of doing this, by all means inform me. Thanks in advance.