Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UNC path from fullpath
#6
works great!
thanks.

Code:
Copy      Help
;assuming you have highlighted a file in WinExplorer
;and that it is on a mapped network drive.

ARRAY(str) a
str b s
int n e
lpstr unc
s.all(500)
'Cc
GetClipboardFiles a
b=a[0]
s.all(500)
n=500
e=WNetGetUniversalName(b UNIVERSAL_NAME_INFO_LEVEL s &n)
if(e) end _s.dllerror("" "" e)
memcpy &unc s 4
out unc
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)