Quantcast
Channel: Indigo Rose Software Forums - Forums
Viewing all articles
Browse latest Browse all 2105

Pull Apart (parse) UNC Path

$
0
0
Im working on creating a utility that will be run across a UNC path. What i am looking to do is to have Setup Factory read in the full path, and parse out the server name and share.

So far i have declared a variable of path that utilizes the %SourceFolder% variable to find out where the EXE is running from.

So for example, if the path is \\servername\sharename\foldername, i would like to be able to set the following variables:

server = servername
share = sharename
folder = foldername

I did some searching on the forums and the web and couldnt find any topics relevant to this, nor did i find anything in the help.

I would appreciate it if someone can point me in the right direction on what action i would need to use to accomplish this or perhaps a small snippet of sample code.

Thanks!

Viewing all articles
Browse latest Browse all 2105

Trending Articles