Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, February 25, 2008 8:38 AM
Hi
I want to convert the vbscript file in C#.
Any idea?
All replies (9)
Monday, February 25, 2008 9:14 AM âś…Answered
There are no automatic tools to do this, as far as I know. There was a Migration Assistant for converting classic asp files over to ASP.NET 1.1, but it wasn't very good, and wasn't even updated to version 2.0.
Frankly, the ASP.NET model is quite different to the classic ASP model, so my advice is to just learn ASP.NET using C# as a completely new thing. Once you have got to grips with it, you can create ASP.NET pages from scratch that contain the same functionality as your classic asp pages.
Monday, February 25, 2008 9:16 AM
try this site
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
Monday, February 25, 2008 2:30 PM
try this site
http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx
VBScript is not VB.
Monday, February 25, 2008 4:26 PM
Hi
yes, VBScript is different from VB. VBScript is loosely type and provides the unmanaged code envoirnment.
I have to convert the vbscript file into C# file.
Wednesday, February 27, 2008 3:31 AM
Yes. You can rewrite the code using c# and asp.net
Wednesday, March 5, 2008 7:31 AM
Hi
I want to convert the vbscript code into c#, not the vb code to c#
thx.
Friday, March 7, 2008 10:48 AM
Powershell is .NET script.
Hi
I want to convert the vbscript code into c#, not the vb code to c#
thx.
I understand vbscript is not vb, but the tips in this book may still be helpful:
http://msdn.microsoft.com/en-us/vbrun/ms788236.aspx
Thursday, July 15, 2010 8:26 AM
While i was also googling for it .. i didnt found any direct convertor to convert it..
Then i thought to convert it to JAVASCRIPT and then to C# ..
I found one online tool located at :
http://slingfive.com/pages/code/scriptConverter/demo.html
i used it to convert vbscript into javascript ..
and then converted Javascript code into C# using Javascript Parser located at :
http://www.codeproject.com/KB/dotnet/JavaformatterArticle.aspx
Though it didnt converted the code fully in the desired form , but after little amendments i was able to run the code ...
Hope it also helps to you ...
Try it ! May this could help you ...
___________________________________________________________________________
Rajan Arora,
Friday, November 12, 2010 11:43 AM
Then i thought to convert it to JAVASCRIPT and then to C# ..
I found one online tool located at :
http://slingfive.com/pages/code/scriptConverter/demo.html
i used it to convert vbscript into javascript ..
Note that the slingfive tool only executes successfully in Internet Explorer (not in FireFox or Chrome).
Thanks for the tips, in any case....
-- Doug Ivison