Ok you need to assign the name to a global variable in your class and then use it when you need it. Code: Private folderName as String = 90000018D3789 ' <-- Replace at runtime with your new random name
or you arent creating the folder... if you arent then you need to find the folder with a directory search for that file name.... and then use IO.FileInfo(path).Directory.FullName to get that folder