Created
August 24, 2011 12:30
-
-
Save peterblazejewicz/1167961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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