• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java GUI running batch(.bat) file in command line

Tan Joey
Posts: 8
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have set my button in my GUI to run a batch(.bat) file to turn the system firewall turn on and off , sample code: "netsh firewall set opmode disable/enable" however java does not run as an administrator, I have try putting RunAs in front of the command but still doesn't work.

List of programs I had tried using:


Appreciate to help!

Thank you!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!