I’m using acrobat that returns unix paths instead of windows path’s. So im wondering if there is a way in vb.net to convert the path to windows path.
i tried using:
docs(i) = javaScriptObj.path().ToString.Replace("/", "\").Substring(1)
position = docs(i).IndexOf("\")
docs(i) = docs(i).Substring(0, position) + ":\" + docs(i).Substring(position + 1)
this only works on local files, but fails when im starting to use network drives. Thanks
Give this a try:
This assumes full path names, and not partial paths.