Visual Basic Frequently Asked QuestionsMaintained by Duncan Mackenzie and some great VB MVPsHow can I run another application or batch file from my Visual Basic .NET code- May 30, 2004 Posted by: Duncan Mackenzie, MSDNThis post applies to Visual Basic .NET 20022003 Suppose you want to run a command line application, open up another Windows program, or even bring up the default web browser or email program... how can you do this from your VB code The answer for all of these examples is the same, you can use the classes and methods in System.Diagnostics.Process to accomplish these tasks and more. Example 1. Running a command line application, without concern for the...http://blogs.msdn.com/vbfaq/archive/2004/05/30/144573.aspx How do I determine the difference between two dates- May 30, 2004 Posted by: Duncan Mackenzie, MSDNThis post applies to Visual Basic .NET 20022003 This common question is often phrased as "How do I find the number of hours between two dates", substituting minutes, seconds, days, or whatever interval you are looking for in the place of 'hours'. Well, in Visual Basic .NET there are two main ways to achieve this result; the DateDiff function or through the TimeSpan structure. Both of these methods are equally valid, where they overlap in functionality, but..http://blogs.msdn.com/vbfaq/archive/2004/05/30/144571.aspx |