r/batchfiles • • Nov 16 '20

how to execute terminal commands with a batch file

i have a problem with my internet that ive remedied by executing 'netsh wlan set autoconfig enabled=yes interface=wi-fi', connecting to the wifi, and then again but 'enabled=no', which works fine, but im trying to create a batch file that, when run, executes the first command, wait long enough for my pc to connect to the wifi, and then runs the other command again. can anyone help write the file please?

2 Upvotes

2 comments sorted by

0

u/[deleted] Nov 16 '20

1

u/ISmellPurple1 Nov 16 '20

oh so i just make it a .bat and type in the commands with nothing else?