Skip to content

Instantly share code, notes, and snippets.

@peterblazejewicz
Created August 24, 2011 12:30
Show Gist options
  • Save peterblazejewicz/1167961 to your computer and use it in GitHub Desktop.
Save peterblazejewicz/1167961 to your computer and use it in GitHub Desktop.
// machine host name required for uri
var host:String = mdm.System.Registry.loadString(3,
"SYSTEM\\CurrentControlSet\\Control\\ComputerName\\ComputerName",
"ComputerName");
// share name
var share:String = "myfolder";
// folder absolute path converted to URI path (strip volume root)
var folderPath:String = mdm.Application.path.substr(3);
// construct full path
var uriPath:String = "\\\\"+host+"\\"+share+"\\"+folderPath;
lbl.text = uriPath+"(exists: "+mdm.FileSystem.folderExists(uriPath)+")";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment