in4mation ... organized


A periodic Section maintained by Pramod S Nair

18. A Windows Script that deals with the output from a shell command version 2

Posted on WisdomBay @ 6:05 PM 11-04-2006 | Post by Pramod S Nair

This script can be used to get the output of a shell command back into the script itself. This script can be modified by the admins for executing external commands or applications and to read it's output back in to the script for further processing. This version of this script executes the ipconfig /all command and parses out Description, MAC address and IP address from it's output.

How to use :
1. Copy the code given above to clipboard.
2. Create a new file and name it as you like with a '.vbs' extension.
3. Now you can use this script for executing any exteranl command or app from your script and then process the output of the command from the script itself.