I want to automatically start a hotspot on my laptop (windows 8).
This is done by the cmd command "netsh wlan start hostednetwork".
I have to log in on my WiFi before using it, so i want to start my hotspot after i have opened the browser. So i want to call a JavaScript file as start page, that executes the command (start page is called after the WiFi is activated). Is there a way to execute the shell command via JavaScript? or do you have better ideas to achieve the same?
JavaScript has no access to call commands like that.
Imagine the security risks if that were possible. *shudder*
You could, however, make an ajax call to a local server, and use a server-side language to execute the command.