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?
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?
