"Run as Administrator" for a single function in an app

I wrote this as my first project for the weekly code challenge but I ran into issues with DragItem.Drag so I didn’t feel like it was good enough to release to the public as part of that event.

Take a look at the RunAs method, there’s also a cool batch file trick in canvasDrag.MouseDown

Its heavily commented but let me know if you need info on something specific, hope it helps.

https://www.dropbox.com/s/x0p0cp1eh4n2ppo/EzSymLinker.xojo_binary_project?dl=1

PS. I use this quite a lot to symlink in my reformatcode script into each new install/beta of xojo so I only have to alter it in one place.

1 Like