• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4134
  • Last Modified:

Converting from VBScript to VB.NET

Does anyone know if there is an application that will convert VBScript to VB.NET or if there is a conversion chart that will show you what namespaces/methods/properties will map over from VBScrtop to VB.NET or vice-versa. I've been programming in VB.NET for around 7 months and have done very little programming in VBScript. I have to convert a bunch of VBScript files someone else has left me to VB.NET. Most of the conversion are around using WScript.Shell, .Network, Scripting.FileSystemObject, winmgmts, Local printer/networ printer stuff, Computers, arrays, etc.

Any help would be appreciated!
Thanks,
Wally
0
wally_davis
Asked:
wally_davis
  • 2
1 Solution
 
dlan75Commented:
Hi,
I think VS2005 has the ability to convert those scripts
0
 
grayeCommented:
Sorry, that's probably not a good idea...

The object model used by scripting is just too crude and is based upon COM standards.  Practically nothing in VB.Net is COM based, so a direct conversion would produce ugly non-managed code.  A conversion from Script to VB.Net that "upgraded" the COM parts to managed parts would be quite a utility, but I rather doubt that exists.
0
 
dlan75Commented:
Hi,
There are some converters, look at this one for example : http://www.netcoole.com/asp2aspx.htm (not free though)

You can take a look at this article as well : http://dotnet.sys-con.com/read/47761.htm
Hope you'll find a solution to your problem.
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now