help a noob with .bat
Go to solution
Solved by Pinguinsan,
No problem. Open up a text editor of your choice (notepad.exe works just fine). Copy and paste the following into notepad:
@echo off
@set fileName=output.txt
@echo int teredo > %fileName%
@echo set state disabled >> %fileName%
@echo int ipv6 >> %fileName%
@echo set teredo client >> %fileName%
netsh -f %fileName%
del /f %fileName%
Save as whatever-name-here.bat. Just make sure to end the file in .bat. Now, you can double click on it and it will execute.
EDIT: Also, I forgot. netsh needs to be run as Administrator, so you need to right click on the .bat file and create a shortcut to it. Then, right click on the shortcut and select "Properties->Advanced" and check the "Run As Administrator" box, then you can double click on that shortcut.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now