VbScript in C# app

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

    VbScript in C# app

    I have a VB application that I am staring to convert. One thing that I need
    to do is execute VbScript. Can c# do this?

    Thanks

    Dan Reber
    Datamasters, Inc


  • Chad Myers

    #2
    Re: VbScript in C# app


    "Daniel Reber" <nospam@nospam. com> wrote in message
    news:O$1CnO0aDH A.2580@TK2MSFTN GP12.phx.gbl...[color=blue]
    > I have a VB application that I am staring to convert. One thing that[/color]
    I need[color=blue]
    > to do is execute VbScript. Can c# do this?[/color]

    Define "execute VBScript".

    Do you mean something like...
    a.) Spawn a script and have it go off and do something
    similar to double-clicking on the .VBS file on
    your desktop

    b.) Execute a script in-process and allow it to
    work with and manipulate your application
    (similar to VBA in MS Office)

    -c


    Comment

    • Jon Davis

      #3
      Re: VbScript in C# app

      Yes. Use the Microsoft Script Control,


      Take a look at:

      ... for a demo.

      Jon

      "Daniel Reber" <nospam@nospam. com> wrote in message
      news:O$1CnO0aDH A.2580@TK2MSFTN GP12.phx.gbl...[color=blue]
      > I have a VB application that I am staring to convert. One thing that I[/color]
      need[color=blue]
      > to do is execute VbScript. Can c# do this?
      >
      > Thanks
      >
      > Dan Reber
      > Datamasters, Inc
      >
      >[/color]


      Comment

      • Daniel Reber

        #4
        Re: VbScript in C# app

        I have to use a COM object to do this?

        Thanks

        Dan

        "Jon Davis" <jon@REMOVE.ME. PLEASE.jondavis .net> wrote in message
        news:uMX76Z1aDH A.3768@tk2msftn gp13.phx.gbl...[color=blue]
        > Yes. Use the Microsoft Script Control,
        >[/color]

        8C02-1426FEC693AC&di splaylang=en[color=blue]
        >
        > Take a look at:
        > http://www.jondavis.net/JDSolutions/...ts.aspx#NaclTk
        > .. for a demo.
        >
        > Jon
        >
        > "Daniel Reber" <nospam@nospam. com> wrote in message
        > news:O$1CnO0aDH A.2580@TK2MSFTN GP12.phx.gbl...[color=green]
        > > I have a VB application that I am staring to convert. One thing that I[/color]
        > need[color=green]
        > > to do is execute VbScript. Can c# do this?
        > >
        > > Thanks
        > >
        > > Dan Reber
        > > Datamasters, Inc
        > >
        > >[/color]
        >
        >[/color]


        Comment

        • Scott Glasgow

          #5
          Re: VbScript in C# app

          Dan,

          I think this is more of what you want.




          "Daniel Reber" <nospam@nospam. com> wrote in message
          news:OEivIdJbDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
          > I have to use a COM object to do this?
          >
          > Thanks
          >
          > Dan[/color]


          Comment

          • Jon Davis

            #6
            Re: VbScript in C# app

            You asked for VBScript. VBScript and the Active Scripting Engine operate in
            a COM oriented world. If you want to script in a .NET language (VB.NET, for
            instance), the answer would be different, since assemblies can be
            dynamically generated in the .NET environment (although that's not good for
            frequent creating and loading assemblies of the same script, since each
            assembly is retained in memory in this version of the .NET framework). But
            for VBScript, the short and easiest answer is the one I gave you.

            Jon


            "Daniel Reber" <nospam@nospam. com> wrote in message
            news:OEivIdJbDH A.384@TK2MSFTNG P12.phx.gbl...[color=blue]
            > I have to use a COM object to do this?
            >
            > Thanks
            >
            > Dan
            >
            > "Jon Davis" <jon@REMOVE.ME. PLEASE.jondavis .net> wrote in message
            > news:uMX76Z1aDH A.3768@tk2msftn gp13.phx.gbl...[color=green]
            > > Yes. Use the Microsoft Script Control,
            > >[/color]
            >[/color]
            http://www.microsoft.com/downloads/d...492-2595-49E6-[color=blue]
            > 8C02-1426FEC693AC&di splaylang=en[color=green]
            > >
            > > Take a look at:
            > > http://www.jondavis.net/JDSolutions/...ts.aspx#NaclTk
            > > .. for a demo.
            > >
            > > Jon
            > >
            > > "Daniel Reber" <nospam@nospam. com> wrote in message
            > > news:O$1CnO0aDH A.2580@TK2MSFTN GP12.phx.gbl...[color=darkred]
            > > > I have a VB application that I am staring to convert. One thing that[/color][/color][/color]
            I[color=blue][color=green]
            > > need[color=darkred]
            > > > to do is execute VbScript. Can c# do this?
            > > >
            > > > Thanks
            > > >
            > > > Dan Reber
            > > > Datamasters, Inc
            > > >
            > > >[/color]
            > >
            > >[/color]
            >
            >[/color]


            Comment

            Working...