It is not possible to create files for launching and stopping Wi-Fi distribution in Windows 10
The problem is that I can’t create these files. More precisely, I can’t rename them so that they have a .bat extension. After I change the name of the text file, it still opens as a text file, even though it is called “start.bat”. What to do? How to create these .bat files in Windows 10?
Answer:
Yes, there is such a problem. Already asked me several times in the comments.
The whole problem is that the display of file extensions is disabled. And it turns out that we do not change the file extension to .bat, but just rename it, and we get “start.bat.txt”. But we can’t see “.txt” because the extension display is disabled.
First we need to turn on file extension display, and then just rename the files, changing their extension from “.txt” to “.bat”. And everything will work.
Enabling file extension display in Windows 10
Open Explorer, or go to “This Computer”, click on the menu item “View”, and select “Options”.
Next, go to the “View” tab, find “Hide extensions for registered file types”, and uncheck the box next to it. Click “Apply” and “Ok”.
That’s it, can now rename files to manage Wi-Fi network distribution from your laptop.
When you change the file name and extension, you should see a warning that the file may not be available. Click “Ok.” This means you have done everything correctly.
After renaming, the file should look like this:
If you have already added the necessary command to the file, you can run it. A command prompt window will open for a couple of seconds and disappear. Immediately the distribution of Wi-Fi network will start, or vice versa, will stop.
You can see all the commands in the article on setting up Wi-Fi distribution in Windows 10. The link is at the beginning of this post.
The created files can be added to the autoloader, and Wi-Fi distribution will automatically start when you boot your computer. Instructions: automatically start Wi-Fi distribution when you turn on your laptop.
I also created two ready-made files “start.bat” and “stop.bat”, which you can download from this link, and just run to control the hotspot.