I am creating a hotspot software for which I need to run a batch file as administrator from a java program. The batch file contains the following two commands:
netsh wlan set hostednetwork mode=allow ssid=name key=password
netsh wlan start hostednetwork
name and password are taken as input from the user.