Code: Select all
#SingleInstance
Menu, Tray, Icon, Shell32.dll, 150 ;this is simply just to have a system tray icon while running, its not necessary
^#s:: ;the shortcut key to make it run after double clicking on the exe
run CMD.exe
Loop, read, C:\example.txt
{
Loop, parse, A_LoopReadLine, %A_Tab%
{
sleep, 500
Send netsh interface ipv4 add address %A_LoopField% {enter}
}
}
Esc::ExitApp
A txt file like this:
Code: Select all
TEST 1.0.0.1 255.255.255.0
TEST 1.0.0.2 255.255.255.0
TEST 1.0.0.3 255.255.255.0
TEST 1.0.0.4 255.255.255.0
TEST 1.0.0.5 255.255.255.0