Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Get the output from CMD prompt

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,36624
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Get the output from CMD prompt
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Get the output from CMD prompt - 7/31/2006 5:57:08 AM   
  BDIntern

 

Posts: 34
Score: 0
Joined: 5/19/2006
Status: offline
  Hey Folks,

   What I'm trying to do is find out a rather large number of computer ip address's. I'd like to ping the server name and then extract the ip and throw it into a spreadsheet.  I haven't been able to find any information that allows me to do this as precisly as I need.

Any help is appreciated.

Thanks in advance,
BDintern
 
 
Post #: 1
 
 RE: Get the output from CMD prompt - 7/31/2006 6:46:19 AM   
  Snipah


Posts: 1343
Score: 6
Joined: 11/1/2004
From: Netherlands
Status: offline
Hiya,

This has been fullt covered on the Forum...

please Search for:

- Exec
- StdOut / StdIn



_____________________________

For more information, please see the "Read me First" topic.

http://www.visualbasicscript.com

(in reply to BDIntern)
 
 
Post #: 2
 
 RE: Get the output from CMD prompt - 7/31/2006 10:08:08 AM   
  DiGiTAL.SkReAM


Posts: 1194
Score: 7
Joined: 9/6/2005
From: Florida, USA
Status: offline
A hint....
What I do, when I don't want to see the dos window, but still need to get the output, is I pipe the command output to a file:

      
Then, it is trivial to read in and parse the resulting file.


_____________________________

"Would you like to touch my monkey?" - Dieter (Mike Meyers)

"It is better to die like a tiger, than to live like a pussy."
-Master Wong, from Balls of Fury

(in reply to Snipah)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Get the output from CMD prompt Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts