getpathfromreg
