I ran into commands in a batch file that need hierarchical input like netsh, for example:
c:\>netsh
>netsh>int
>netsh>intface>ip
If I want to write this as a batch file, how should I handle it?
I saw an article saying to save it as an sh file, then call it with netsh exec *.sh. I tried it, but it didn't work. I don't know what went wrong.
c:\>netsh
>netsh>int
>netsh>intface>ip
If I want to write this as a batch file, how should I handle it?
I saw an article saying to save it as an sh file, then call it with netsh exec *.sh. I tried it, but it didn't work. I don't know what went wrong.

