![]() |
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-09-15 12:31 |
47,812 topics / 349,917 posts / today 0 new / 48,268 members |
| DOS批处理 & 脚本技术(批处理室) » Modify the name of the local connection |
| Printable Version 3,880 / 4 |
| Floor1 a9319751 | Posted 2006-12-10 01:28 |
| 中级用户 Posts 170 Credits 439 | |
|
for /f "usebackq tokens=3 delims= " %%i in (`netsh interface show interface^|find "专用"`) do (
set a=%%i if #%%i neq #本地连接 netsh interface set interface name=%%i newname=本地连接 ) pause Rename the local connection [ Last edited by a9319751 on 2006-12-12 at 06:58 AM ] |
|
| Floor2 lxmxn | Posted 2006-12-10 01:43 |
| 版主 Posts 4,938 Credits 11,386 | |
|
The set a=%%i here seems a bit redundant, and so is delims=. Modify it: |
|
| Floor3 a9319751 | Posted 2006-12-10 01:46 |
| 中级用户 Posts 170 Credits 439 | |
| Floor4 daitu3 | Posted 2006-12-20 23:16 |
| 初级用户 Posts 35 Credits 83 From 广东 | |
|
Learning
|
|
| Floor5 lonely317 | Posted 2010-03-25 17:55 |
| 新手上路 Posts 4 Credits 9 | |
|
It seems it didn't work.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |