Visual Basic Shell Administrator?
问题 If I'm using Visual Basic to run an executable using the Shell() command, how would I run that executable as an administrator? My method works, at least in practice, but one executable won't run properly and I think that's the issue. Here's an example of the command I'm trying to run. Shell("%temp%\ninite.exe") Edit: Sorry, this is VB.net, not VBA. I put a bad tag on there. 回答1: To stay strictly in VBA with no .NET dependencies, you should be able to use the ShellExecute Win32 function.