Results 1 to 4 of 4

Thread: VBScript for .NET

  1. #1
    Join Date
    Nov 2009
    Posts
    1,191

    VBScript for .NET

    Hi there,

    I am having small issue regarding the .NET Programing which i think can be solved by you. The problem is that i want to use the VBscript to the .NET but i don't know how to perform that. I have shifted from the JAVA background to the .NET so i am not well known being of the same. So any body have idea about the same can come forward to help me. Thanks in advance.

    Bye.

  2. #2
    Join Date
    May 2008
    Posts
    3,316

    Re: VBScript for .NET

    According to me we cant use VBscript in the .net completely but some of the part can be access by the code. Depend on the need of yours try this out. I am posting here the code for the same hoping that it will sort your problem regarding the same. enjoy if it works.

    Code:
    set coll = CreateObject("System.Collections.Queue")
    coll.Enqueue "Maqbool"
    coll.Enqueue "Gaurav"
    WScript.Echo coll.Dequeue()
    WScript.Echo coll.Dequeue()

  3. #3
    Join Date
    Apr 2008
    Posts
    2,139

    Re: VBScript for .NET

    Hey,

    I think you cant fine any method which will call the VBscript in the VB.NET as it was possible in the VB6. But you can build your own control to call the same which will execute the chosen VBScript as an external process and redirect I/O to the VB.NET application. Otherwise embed/use ActiveX control in your VB.NET app via COM interop. Thats all i know about the VBscript calling. So say thanks if it work for you and let me know.

    Bye

  4. #4
    Join Date
    Jan 2008
    Posts
    3,388

    Re: VBScript for .NET

    Hi there,

    As per my knowledge it is not possible to share VB.NET code with VBScript. It can be only possible by exposing the .NET code as a COM object. For running the same in the .NET just turn off option strictly and define the code manually. But doing this is not worth it. so i will suggest you to go with the code manually and see that it work with you you or not.

    Thank you

Similar Threads

  1. Run As Administrator from vbScript
    By Santiago Bruni in forum Vista Help
    Replies: 4
    Last Post: 29-09-2010, 11:30 PM
  2. Which is the Best VBScript Editor
    By GWENDA in forum Software Development
    Replies: 4
    Last Post: 28-09-2009, 02:19 PM
  3. help with vbscript
    By andrakis2 in forum Networking & Security
    Replies: 3
    Last Post: 24-08-2009, 06:13 AM
  4. How to set the vbscript setgateway
    By afidelino in forum Software Development
    Replies: 3
    Last Post: 19-08-2009, 03:28 PM
  5. Execute vbscript
    By Juan GarcĂ­a in forum Windows Server Help
    Replies: 4
    Last Post: 15-05-2008, 12:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,140,730.65717 seconds with 17 queries