batch file - How can I run netsh using batchfile? -


i writing batch file use 'netsh' command repetitive. far wrote code.

@echo off set pcname=%computername%.%userdnsdomain%   @echo on netsh http add urlacl url=http://%computername%.%userdnsdomain%:1000/ user=everyone  exit 

when running command, runs infinitely. when run

netsh http add urlacl url=http://%computername%.%userdnsdomain%:1000/ user=everyone 

it's going infinitely.

what can run properly?

filename netsh.bat. changed file name , working fine


Comments