中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 20:08
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS媒体世界 & 网络技术 (多媒体室) » [Urgent] Batch files containing hierarchical commands like netsh
Printable Version  1,087 / 0
Floor1 萍客 Posted 2003-07-02 00:00
初级用户 Posts 19 Credits 205
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.







[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023