Windows Develop Bookmark and Share   
 index > Windows Forms General > Convert VB Script to .DLL(URGENT)
 

Convert VB Script to .DLL(URGENT)

Hello, I am trying to find the solution for my query since so long., All these days i was working on web applications,but now on windows..I am new to VB Script.

Major issue is to know the converison of VB Script to DLL.

Kindly show me the steps for the conversion with a sample code..its urgent please..Thanx guys

pyar  Monday, July 07, 2008 5:56 AM

Since vbscript is a scripting language, you can't directly create executable or libreries with it.

maybe you'll be able to do this using a third party program like this, though i didn't tested this kind of programs.

Lucian Baciu  Monday, July 07, 2008 9:08 AM

Reference Windows Script Host and load your script into VB.Net. Build the project as a class library (.dll).

JohnWein  Friday, July 11, 2008 5:33 AM

Since vbscript is a scripting language, you can't directly create executable or libreries with it.

maybe you'll be able to do this using a third party program like this, though i didn't tested this kind of programs.

Lucian Baciu  Monday, July 07, 2008 9:08 AM
I read the article.But its for converting VBS to EXE which is of no use to me.I want from VBS to DLL(.NET DLL).
Can you please find out a solution for this.I am tired of searching the net for the same since so long.

Cheers

pyar  Friday, July 11, 2008 5:12 AM

Reference Windows Script Host and load your script into VB.Net. Build the project as a class library (.dll).

JohnWein  Friday, July 11, 2008 5:33 AM
Thank you so much for the quick reply sir.Could you kindly elaborate on this step by step since i am a new bie to this.How to load VBScript to VB.NET?Kindly reply..Thanx again.Awaiting for your response.

Cheers
pyar  Friday, July 11, 2008 8:05 AM

Paste the script in a class. Could you post the functions in the calling program which will call the functions in the .dll?

JohnWein  Friday, July 11, 2008 9:03 AM
I really have no complete working program as such.I have a simple script to copy file from 1 directory to another.tats it.Please give me a small sample code so that i can get into the steps.I really wann know this.
pyar  Friday, July 11, 2008 10:15 AM

If all you want to do is copy a file from 1 directory to another use:

My.Computer.FileSystem.CopyFile(sourceFile, destinationFile)

JohnWein  Friday, July 11, 2008 10:25 AM
Sorry it isnt working,i am getting compilation errror.Instead i have used this that works perfect
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile "c:\mydir\*.*", "d:\backup\",TRUE

Now i need to follow the steps to convert VBScript to DLL.Can you please mail me to pavi.raj06@gmail.com

pyar  Friday, July 11, 2008 10:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Problem of circular reference.
• ToolTipSplit and ToolTipDropDown Remember last selection
• Emergent!!!! List<Type> variable addition problem
• Integrating MS Word in your .NET application
• How to get item listview with KeyDown event?
• Ctrl-c or Ctrl-x does not work in DataGridView.
• Web Browser Control Stealing Focus
• GDI+ Bug??? Out of Memory Exception and Generic Error
• how to cleare all selected items in a checkboxlist in vb.net 2005
• Exit Application..