![]() |
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-02 05:43 |
48,037 topics / 350,122 posts / today 2 new / 48,250 members |
| DOS批处理 & 脚本技术(批处理室) » Can the result be obtained when wshshell.run in VBS calls a DOS command? |
| Printable Version 1,550 / 2 |
| Floor1 zerocq | Posted 2006-10-12 04:19 |
| 中级用户 Posts 196 Credits 458 | |
|
Little brother wants to write a VBS script to call the netstat command.
The current method is to use run to call netstat>*.txt, and then use fso to read the content in *.txt and assign it to a variable. May I ask all the experts, can the result of the netstat command be directly assigned to a variable after wshshell.run runs the netstat command in VBS, skipping the two steps of writing and then reading? |
|
| Floor2 electronixtar | Posted 2006-10-12 04:45 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
http://www.cn-dos.net/forum/viewthread.php?tid=21082&fpage=1&highlight=vbs
Search more, check old threads more |
|
| Floor3 zerocq | Posted 2006-10-13 01:41 |
| 中级用户 Posts 196 Credits 458 | |
Originally posted by electronixtar at 2006-10-12 04:45: Thanks:P The script is written:D When using exec to call, a black box appears. Is it impossible to remove??:) |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |