c# - Get the relative path of RegistryKey -
i have system.win32.registrykey object points to, example, "hkcu\software\test". .name property populated absolute path. there way current (relative) key name?
in example above, looking "test" part of path. looking registry equivelent system.io.path.getdirectoryname without having parse path manually.
you can call system.io.path.getdirectoryname.
the path.* functions (except getfullpath()) purely string manipulation functions , work fine non-filesystem paths.
Comments
Post a Comment