Is it possible to execute commands such as /ipconfig
by double-clicking a JavaScript file on your desktop? Just like you do with VBScripts in Windows.
If not, is there any Java-based scripting file type that can handle this?
With scripting file type I mean something such as .BAT, .VBS or .PS1. Avoid .JAVA or .JAR answers as these files aren't as easy to build nor they are scripts.