Skip to content

Instantly share code, notes, and snippets.

@shpaker
shpaker / wifi_starter.cmd
Last active January 19, 2018 15:25
Batch file for managing virtual Wi-Fi hotspot in Windows 7+
rem author https://github.com/shpaker
@echo off
:main
echo [1] Start Wi-Fi network
echo [2] Stop Wi-Fi network
echo [3] Restart Wi-Fi network
echo [4] Config Wi-Fi network (require administrator privileges)
echo [0] Exit
// Calc DPI with JS
function dpLib(debug) {
"use strict";
var div = document.createElement("div");
div.style.width = "1in";
div.style.position = "abolute";
div.style.top = "-100%";
div.style.bottom = "-100%";
document.body.appendChild(div);
//