Question

Using Visual Basic to run a Dos Command with Txt input

Asked by: reggiewolf

The dos command I want to run is ping 192.168.1.1. But I would like to have a txt box that a user can input the ip address they would like to ping. I would also like the command window to appear and show the results.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-11-04 at 18:22:19ID23876648
Tags

Visual Basic

Topics

Microsoft Programming

,

Visual Basic Programming

,

Microsoft Visual Basic.Net

Participating Experts
3
Points
250
Comments
7

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. PDF To TXT
    Hi Experts, What I need is some way to extract the contents of a PDF file into simple TXT - Anybody know the easiest way to do it? What I need to do is process text (as text) and I'd like to be able to offer importing from PDF. However, this needs to be an automatic conver...
  2. txt handler
    Hi there, I came across your address on the net, and I would like to ask you a quick programming question. Could you point me out to a sort of code that can count the number of characters and lines in a txt file and transfer that to exell or access? I have the followin...
  3. Read input from a .txt file
    How would I read input from a .txt file and explictly search for a string within the file using lcc-32 c compiler for windows. I understand that a file must be opened, I've done so along with an error checking feature. Unfourtunately I don't have any idea how I would read the...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: AlexCodePosted on 2008-11-05 at 13:19:46ID: 22890080

Hi,

I've created this on a windows project so I'm using MessageBox.Show...
Use the output variable to show the console output the way you like.


cheers,
Alex

        Dim ip As String = "192.168.1.1"
 
        Dim p As New System.Diagnostics.Process
 
        p.StartInfo.UseShellExecute = False
        p.StartInfo.CreateNoWindow = True       ' don't show the console window
        p.StartInfo.RedirectStandardOutput = True
 
        p.StartInfo.FileName = "ping"  ' the command to run
        p.StartInfo.Arguments = ip  ' the command arguments
 
        p.Start()
 
        ' this output variable will hold everything that is supposed to appear on the console
        Dim output As String = p.StandardOutput.ReadToEnd()
        p.WaitForExit()
 
        MessageBox.Show(output)

                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:

Select allOpen in new window

 

by: AlexCodePosted on 2008-11-05 at 13:20:37ID: 22890089

This is VB.net btw...

 

by: TheLearnedOnePosted on 2008-11-05 at 13:31:20ID: 22890201

For VB.NET 2005, and greater, there is the System.Net.NetworkInformation.Ping class, so you don't need a DOS command.

 

by: jake072Posted on 2008-11-05 at 14:08:49ID: 22890556

I made something quick for you that does NOT open a window, although that would be easy, but rather gives output for you in a textbox...

Hope it'll help,

Jake

Option Strict On
 
Imports System.Text.RegularExpressions
Imports System.Net
Imports System.Net.Sockets
Imports System.Runtime.InteropServices
 
Public Class Form1
    Inherits System.Windows.Forms.Form
 
#Region " Windows Form Designer generated code "
 
    Public Sub New()
        MyBase.New()
 
        'This call is required by the Windows Form Designer.
        InitializeComponent()
 
        'Add any initialization after the InitializeComponent() call
 
    End Sub
 
    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub
 
    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer
 
    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents TextBox1 As System.Windows.Forms.TextBox
    Friend WithEvents Button1 As System.Windows.Forms.Button
    Friend WithEvents TextBox2 As System.Windows.Forms.TextBox
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.TextBox1 = New System.Windows.Forms.TextBox
        Me.Button1 = New System.Windows.Forms.Button
        Me.TextBox2 = New System.Windows.Forms.TextBox
        Me.SuspendLayout()
        '
        'TextBox1
        '
        Me.TextBox1.Location = New System.Drawing.Point(8, 8)
        Me.TextBox1.Name = "TextBox1"
        Me.TextBox1.TabIndex = 0
        Me.TextBox1.Text = "xxx.xxx.xxx.xxx"
        '
        'Button1
        '
        Me.Button1.Location = New System.Drawing.Point(112, 8)
        Me.Button1.Name = "Button1"
        Me.Button1.TabIndex = 1
        Me.Button1.Text = "Ping"
        '
        'TextBox2
        '
        Me.TextBox2.Location = New System.Drawing.Point(8, 40)
        Me.TextBox2.Multiline = True
        Me.TextBox2.Name = "TextBox2"
        Me.TextBox2.ScrollBars = System.Windows.Forms.ScrollBars.Vertical
        Me.TextBox2.Size = New System.Drawing.Size(272, 216)
        Me.TextBox2.TabIndex = 2
        Me.TextBox2.Text = ""
        '
        'Form1
        '
        Me.AcceptButton = Me.Button1
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(292, 266)
        Me.Controls.Add(Me.TextBox2)
        Me.Controls.Add(Me.Button1)
        Me.Controls.Add(Me.TextBox1)
        Me.Name = "Form1"
        Me.Text = "Form1"
        Me.ResumeLayout(False)
 
    End Sub
 
#End Region
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim strPattern As String = "^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$"
        Dim regCheck As New Regex(strPattern)
 
        If TextBox1.Text = "" Then
 
            MessageBox.Show("You must enter an ip to search for!")
            Exit Sub
 
        Else
 
            If regCheck.IsMatch(TextBox1.Text, 0) = False Then
 
                MessageBox.Show("Invalid IP address." & vbCrLf & "Address must be ###.###.###.###")
                Exit Sub
 
            End If
 
        End If
 
        TextBox2.Text &= "Pinging " & TextBox1.Text & " with 32 bytes of data:" & vbCrLf
        TextBox2.Update()
 
        Dim result As ICMPClass.ICMPReplyStructure()
        ReDim result(3)
        Dim intLost As Integer = 0
        Dim intReceived As Integer = 0
        Dim intMin As Integer = Integer.MaxValue
        Dim intMax As Integer = Integer.MinValue
        Dim decAverage As Decimal = 0
 
        Dim i As Integer
        For i = 0 To 3
 
            Dim icmp As New ICMPClass
            result(i) = icmp.Ping(TextBox1.Text)
 
            If result(i).Status <> ICMPClass.ICMPStatusEnum.Success Then
 
                TextBox2.Text &= result(i).Message & vbCrLf
                intLost += 1
 
            Else
 
                intReceived += 1
                TextBox2.Text &= "Reply from: " & result(i).ReplyFrom.ToString() & " bytes=32 time=" & result(i).RoundTripTime & "ms TTL=" & result(i).TTL & vbCrLf
 
                If intMin > result(i).RoundTripTime Then
                    intMin = result(i).RoundTripTime
                End If
 
                If intMax < result(i).RoundTripTime Then
                    intMax = result(i).RoundTripTime
                End If
 
            End If
 
            TextBox2.Update()
 
        Next
 
        For j As Integer = 0 To 3
            If result(j).Status = ICMPClass.ICMPStatusEnum.Success Then
                decAverage += result(j).RoundTripTime
            End If
        Next
 
        decAverage /= intReceived
 
        TextBox2.Text &= vbCrLf & "Ping statistics for " & TextBox1.Text & ":" & vbCrLf & vbTab & "Packets: Sent=" & i & ", Received = " & intReceived & ", Lost = " & intLost & " (" & intReceived / i & "% loss)," & vbCrLf & "Approximate round trip times in milli-seconds:" & vbCrLf & vbTab & "Minimum = " & intMin & "ms, Maximum = " & intMax & "ms, Average = " & CInt(decAverage) & "ms" & vbCrLf & vbCrLf
 
    End Sub
 
    ' Taken from: http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=3194&lngWId=10
    '//**************************************
    '//     
    '// Name: A ping class in VB.Net
    '// Description:This class allows the use
    '//     r to ping a remote host. This example us
    '//     es API calls to ICMP.dll, so compiled so
    '//     urces do not need administrative rights 
    '//     to run.
    '// By: Alan Toews
    '//
    '// Inputs:The main function in this clas
    '//     s (Ping) has two overloads, declared as 
    '//     follows:
    'Public Function Ping(ByVal Host As String, Optional ByVal Timeout As Integer = 2000, Optional ByVal TTL As Byte = 32, Optional ByVal DataSize As Long = 32) As ICMPReplyStructure
    'and
    'Public Function Ping(ByVal IP As IPAddress, ByVal opt As ICMPOptions) As ICMPReplyStructure
    '//
    '// Returns:The structure declared below 
    '//     is returned 
    '//
    '// Assumes:To use this code, add a modul
    '//     e to your project and insert the code be
    '//     low in its entirety. Examples of how it 
    '//     is used can be found in the comments wit
    '//     hin the code.
    '//
    '// Side Effects:While the code works wel
    '//     l for me, it is only an example. You wil
    '//     l likely find unhandled errors, bugs, et
    '//     c..
    '//
    '//This code is copyrighted and has    // limited warranties.Please see http://
    '//     www.Planet-Source-Code.com/vb/scripts/Sh
    '//     owCode.asp?txtCodeId=3194&lngWId=10    //for details.    //**************************************
    '//     
 
    Public Class ICMPClass
        'Enumerated list of icmp echo reply response codes
        Public Enum ICMPStatusEnum
            Success = 0
            BufferTooSmall = 11001 'Buffer Too Small 
            DestinationNetUnreachable = 11002 'Destination Net Unreachable 
            DestinationHostUnreachable = 11003 'Destination Host Unreachable 
            DestinationProtocolUnreachable = 11004 'Destination Protocol Unreachable 
            DestinationPortUnreachable = 11005 'Destination Port Unreachable 
            NoResource = 11006 'No Resources 
            BadOption = 11007 'Bad Option 
            HardwareError = 11008 'Hardware Error 
            LargePacket = 11009 'Packet Too Big 
            RequestTimedOUT = 11010 'Request Timed Out 
            BadRequest = 11011 'Bad Request 
            BadROUTE = 11012 'Bad Route 
            TtlExpiredInTransit = 11013 'TimeToLive Expired Transit 
            TtlExpiredInReassembly = 11014 'TimeToLive Expired Reassembly 
            Parameter = 11015 'Parameter Problem 
            SourceQuench = 11016 'Source Quench 
            OptionTooBig = 11017 'Option Too Big 
            BadDestination = 11018 'Bad Destination 
            NegotiatingIPSEC = 11032 'Negotiating IPSEC 
            GeneralFailure = 11050 'General Failure 
        End Enum
        'User Friendly ping command that accepts a host as either an ip address 
        'or a resolvable name. 
        'Usage:
        'ex 1: console.WriteLine Ping("192.168.0.1").RoundTripTime
        'ex 2: dim reply as ICMPReplyStructure
        ' reply = Ping("192.168.0.1", 1000,16)
        ' console.WriteLine reply.ReplyFrom.ToString & " replied in " & reply.RoundTripTime & _
        '"ms. status:" & reply.status & ":" & reply.message & ". TTL=" & reply.TTL
        Public Function Ping(ByVal Host As String, Optional ByVal Timeout As Integer = 2000, Optional ByVal TTL As Byte = 32, Optional ByVal DataSize As Long = 32) As ICMPReplyStructure
            Dim IP As IPAddress
            Dim opt As ICMPOptions
            Try
                IP = Dns.GetHostByName(Host).AddressList(0)
            Catch ex As Exception
                Dim r As ICMPReplyStructure
                'create a mock reply 
                r.Message = ex.ToString
                r.ReplyFrom = New IPAddress(0)
                r.Status = ICMPStatusEnum.GeneralFailure
                r.TTL = 255
                'return the error message as a ICMP general error
                Return r
                Exit Function
            End Try
            opt.Timeout = Timeout
            opt.TimeToLive = TTL
            opt.DatSize = DataSize
            Return Ping(IP, opt)
        End Function
 
        'Code friendly Ping that actually does the work
        Public Function Ping(ByVal IP As IPAddress, ByVal opt As ICMPOptions) As ICMPReplyStructure
            Dim ICMPHandle As IntPtr
            Dim iIP As Int32
            Dim sData As String
            Dim oICMPOptions As New ICMPClass.ICMP_OPTIONS
            Dim ICMPReply As ICMP_ECHO_REPLY
            Dim iReplies As Int32
            ICMPHandle = IcmpCreateFile
            iIP = System.BitConverter.ToInt32(IP.GetAddressBytes, 0)
            sData = "X"
            oICMPOptions.Ttl = opt.TimeToLive
            iReplies = IcmpSendEcho(ICMPHandle, iIP, sData, sData.Length, oICMPOptions, ICMPReply, Marshal.SizeOf(ICMPReply), opt.Timeout)
            Dim reply As ICMPReplyStructure
            reply = FillReplyStructure(ICMPReply)
            Return reply
        End Function
 
        'return a people friendly message from the status code
        Public Function GetMessage(ByVal status As ICMPStatusEnum) As String
            Select Case status
                Case ICMPStatusEnum.Success
                    Return "Success"
                Case ICMPStatusEnum.BufferTooSmall
                    Return "Buffer Too Small"
                Case ICMPStatusEnum.DestinationNetUnreachable
                    Return "Destination Net Unreachable"
                Case ICMPStatusEnum.DestinationHostUnreachable
                    Return " Destination Host Unreachable"
                Case ICMPStatusEnum.DestinationProtocolUnreachable
                    Return "Destination Protocol Unreachable"
                Case ICMPStatusEnum.DestinationPortUnreachable
                    Return "Destination Port Unreachable"
                Case ICMPStatusEnum.NoResource
                    Return "No Resources"
                Case ICMPStatusEnum.BadOption
                    Return "Bad Option"
                Case ICMPStatusEnum.HardwareError
                    Return "Hardware Error"
                Case ICMPStatusEnum.LargePacket
                    Return "Packet Too Big"
                Case ICMPStatusEnum.RequestTimedOUT
                    Return "Request Timed Out"
                Case ICMPStatusEnum.BadRequest
                    Return "Bad Request"
                Case ICMPStatusEnum.BadROUTE
                    Return "Bad Route"
                Case ICMPStatusEnum.TtlExpiredInTransit
                    Return "TimeToLive Expired Transit"
                Case ICMPStatusEnum.TtlExpiredInReassembly
                    Return "TimeToLive Expired Reassembly"
                Case ICMPStatusEnum.Parameter
                    Return "Parameter Problem"
                Case ICMPStatusEnum.SourceQuench
                    Return "Source Quench"
                Case ICMPStatusEnum.OptionTooBig
                    Return "Option Too Big"
                Case ICMPStatusEnum.BadDestination
                    Return "Bad Destination"
                Case ICMPStatusEnum.NegotiatingIPSEC
                    Return "Negotiating IPSEC"
                Case ICMPStatusEnum.GeneralFailure
                    Return "General Failure"
            End Select
        End Function
 
        'fill the reply structure which will be passed abck to the user with data
        'from the ICMP_ECHO_REPLY structure.
        Private Function FillReplyStructure(ByVal IER As ICMP_ECHO_REPLY) As ICMPReplyStructure
            Dim irs As ICMPReplyStructure
            irs.RoundTripTime = IER.RoundTripTime
            irs.Message = GetMessage(IER.Status)
            irs.ReplyFrom = New IPAddress(IER.Address)
            irs.Data = IER.Data
            irs.Status = IER.Status
            irs.TTL = IER.Options.Ttl
            Return irs
        End Function
 
        'API functions contained in ICMP.DLL these functions perform the actual pinging
        Private Declare Auto Function IcmpCreateFile Lib "ICMP.DLL" () As IntPtr
        Private Declare Auto Function IcmpSendEcho Lib "ICMP.DLL" _
        (ByVal IcmpHandle As IntPtr, ByVal DestinationAddress As Integer, _
        ByVal RequestData As String, ByVal RequestSize As Integer, _
        ByRef RequestOptions As ICMP_OPTIONS, ByRef ReplyBuffer As ICMP_ECHO_REPLY, _
        ByVal ReplySize As Integer, ByVal Timeout As Integer) As Integer
        <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
        Public Structure ICMP_OPTIONS
            Public Ttl As Byte
            Public Tos As Byte
            Public Flags As Byte
            Public OptionsSize As Byte
            Public OptionsData As IntPtr
        End Structure
        <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
        Public Structure ICMP_ECHO_REPLY
            Public Address As Integer
            Public Status As ICMPStatusEnum
            Public RoundTripTime As Integer
            Public DataSize As Short
            Public Reserved As Short
            Public DataPtr As IntPtr
            Public Options As ICMP_OPTIONS
            <MarshalAs(UnmanagedType.ByValTStr, SizeConst:=250)> _
            Public Data As String
        End Structure
        Public Structure ICMPReplyStructure
            Public ReplyFrom As IPAddress
            Public RoundTripTime As Integer
            Public Data As String
            Public Status As ICMPStatusEnum
            Public Message As String
            Public TTL As Byte
        End Structure
 
        Public Structure ICMPOptions
            Public Timeout As Integer
            Public TimeToLive As Byte
            Public DatSize As Long
        End Structure
 
    End Class
 
End Class
                                              
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:

Select allOpen in new window

 

by: TheLearnedOnePosted on 2008-11-05 at 14:14:41ID: 22890614

Wow!! Even more code--gotta love it!! *WINK*.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...