批处理中遇到包含像netsh的需要分层的命令,如
c:\>netsh
>netsh>int
>netsh>intface>ip
如果要写成批处理该怎么处理呢?看到一篇文章,说存成sh文件,再用netsh exec *.sh调用,试了一下没有成功,不知道哪里错了
In batch processing, for commands like netsh that need to be layered, such as:
c:\>netsh
>netsh>int
>netsh>intface>ip
How to handle it when writing a batch? I saw an article saying to save it as a.sh file and then use netsh exec *.sh to call it, but it didn't work when I tried. I don't know where the mistake is.