I'm currently developing a study tool which groups several portable system management tools (mainly sysinternal tools). I have a simple frame with a JButton.
What am I trying to do?
- Along with my java file i have an exe file (for example purposes let's use config.exe) which needs elevated rights to run.
After the user clicks on the button how can i do this execute this file?
EDIT: I just found one other way to do it. I made a exe from my jar file and went to the compatibility tab and checked "Always Run as admin" Thank you for all of your help.
解决方案
First of all locate the directory in which the exe file is located.Then create a text file named as
"Your_Exe_File_Name".exe.manifest
Just put the below contents to the file and save it.
processorArchitecture="X86"
name=&