Run Visual Basic Script in .NET

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sperotti

    #1

    Run Visual Basic Script in .NET

    I am running the following code in VB.NET:

    Dim proc As New System.Diagnost ics.Process

    proc.StartInfo. FileName = "C:\Program Files\Common
    Files\DPS\Scrip ts\myVBSCode.vb s"

    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()
  • Cor Ligthert

    #2
    Re: Run Visual Basic Script in .NET

    Sperotti,

    Did you already look at this one?

    http://msdn.microsoft.com/library/de...classtopic.asp

    I hope this helps,

    Cor


    Comment

    • sperotti

      #3
      Re: Run Visual Basic Script in .NET

      Thanks for you prompt reply. That did it.

      "Cor Ligthert" wrote:
      [color=blue]
      > Sperotti,
      >
      > Did you already look at this one?
      >
      > http://msdn.microsoft.com/library/de...classtopic.asp
      >
      > I hope this helps,
      >
      > Cor
      >
      >
      >[/color]

      Comment

      Working...