Run Visual Basic Script in .NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running the following code in VB.NET:

Dim proc As New System.Diagnostics.Process

proc.StartInfo.FileName = "C:\Program Files\Common
Files\DPS\Scripts\myVBSCode.vbs"

proc.StartInfo.CreateNoWindow = True
proc.Start()

The process runs fine, however the process always creates a DOS command
window even though CreateNoWindow is set to True. I am running this on a
Windows 2000 machine. This is not a problem on XP Service Pack 2.

Any suggestions?

Thanks in advance for your help.

proc.Close()
 
Back
Top