China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-13 21:04
中国DOS联盟论坛 » DOS媒体世界 & 网络技术 (多媒体室) » [Urgent] Batch files containing hierarchical commands like netsh View 1,089 Replies 0
Original Poster Posted 2003-07-02 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 205
Posts 19
Joined 2003-06-06 00:00
23-year member
UID 3959
Gender Male
Status Offline
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.







Forum Jump: