WISDOMBAY

in4mation ... organized

WINDOWS SCRIPTING CORNER @ WISDOMBAY

A periodic Section maintained by Pramod S Nair

17. A Windows Script that deals with the output from a shell command

Posted on WisdomBay @ 7:02 PM 06-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.

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.