Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


RE: Pull information from a file based on search criteria

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> RE: Pull information from a file based on search criteria
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: <<   < prev  1 2 3 4 [5]
Login
Message << Older Topic   Newer Topic >>
 RE: Pull information from a file based on search criteria - 12/13/2006 8:06:19 AM   
  ehvbs

 

Posts: 2058
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi aburt,

welcome back! We don't need the InputBox, if and only if we can use nIP resp. sIP or use
a persistent (save to disk between runs) counter. I'd prefer the first alternative. What do
you think?

(in reply to aburt)
 
 
Post #: 81
 
 RE: Pull information from a file based on search criteria - 12/13/2006 8:12:21 AM   
  aburt

 

Posts: 104
Score: 0
Joined: 12/4/2006
Status: offline
Im not clear on the difference so I have to say if you think the 1st altnertative is the best then by all means lets try that.

(in reply to ehvbs)
 
 
Post #: 82
 
 RE: Pull information from a file based on search criteria - 12/13/2006 8:34:22 AM   
  ehvbs

 

Posts: 2058
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi aburt,

help me get this right! If we use nIP (our counter to loop over the desired subnet IPs) and run the
script for different subnets, we would risk duplicate MACs (100.10.9.25 and 100.10.12.25 would
both generate a MAC 000000000025). If we use the full sIP or at least the last to octets, we'd
be on the save side. An addtional gain would be, that you could predict the MAC, when you
know the IP.

If you agree - could you post your current doTheRealWork() function? It would help me to
synchronize.

Thanks

(in reply to aburt)
 
 
Post #: 83
 
 RE: Pull information from a file based on search criteria - 12/13/2006 8:54:04 AM   
  aburt

 

Posts: 104
Score: 0
Joined: 12/4/2006
Status: offline
ehvbs, your right I had not thought that far ahead that there would duplicate mac if I changed the subnets, good catch!  Here is the code.


      

(in reply to ehvbs)
 
 
Post #: 84
 
 RE: Pull information from a file based on search criteria - 12/13/2006 9:16:40 AM   
  ehvbs

 

Posts: 2058
Score: 50
Joined: 6/22/2005
From: Germany
Status: offline
Hi aburt,

I changed the Else/Not found code:


      

and got:


      

(in reply to aburt)
 
 
Post #: 85
 
 
Page:  <<   < prev  1 2 3 4 [5]
 
  

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 >> RE: Pull information from a file based on search criteria Page: <<   < prev  1 2 3 4 [5]
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