windows - Running for loop with user input -


i wish create batch file take user input of, set of ip's. these ip's have automatically open individual putty session , execute commands.

start c:\users\dell\desktop\putty.exe -ssh userid@hostip -pw password -m command.txt

this command using. @ moment using same command "n" no of times in batch file depending upon number of hostip have.

now wish prompt enter set of ip's in 1 shot, , these induvidual ip's should substituted in hostip part of command.

once enter set of ip's user input.. should count them, , create above script individual hostips execution.

is possible. kindly full batch script :)

thanks in advance.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -