Solved

convert vb.net to vb script

Posted on 2004-09-03
5
450 Views
Last Modified: 2008-03-17
I have created a working VB.net app but now would like to created a VB script that does the same function. is there a way to convet VB.net code to VB script?
is there an app that I can download and use?
The purpose of this app is to list a group of printers that are on a printer server and allow users to connect to them by clicking on them.
do I post the .net code here?

thanks for any help.
0
Comment
Question by:tomaz808
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 75 total points
ID: 11976999
Vb.Net and VB Script are two completely different animals.

There is no way to convert .Net code to script automatically.  Depending on what you are doing, it may not even be possible.

If you have a working app in .net, why convert it?

If you absolutely need the app in script, then you will most likely need to recreate it from scratch.

Idle_Mind
0
 

Author Comment

by:tomaz808
ID: 11977037
I would like the app to run as a logon script.
0
 
LVL 4

Expert Comment

by:Javert93
ID: 11978335
Unfortunately, VB Script is a subset of Visual Basic 6.0, whereas VB.NET is... well... .NET (so they are two completely different programming languages). It is like asking for something that converts VB.NET code to native C++; it's too complex of an undertaking. However, you could keep your existing code in .NET and expose it through a COM class (in .NET), that way you could call the .NET code using COM interop from VB Script instead.
0
 
LVL 7

Expert Comment

by:sj_hicks
ID: 12081679
Hey tomaz808,

VBScript does not provide many user interaction features so if you want to display a list of printers for a user to select, you won't have much luck.  One option is to create an HTML application.  This is an HTML page with .HTA extension and HTA header properties.  This includes HTML for the user interface and you can use VBScript to perform the scripting.

However, as mentioned above, converting to any form of scripting will require you to re-code.
0
 

Author Comment

by:tomaz808
ID: 12086757
All were great help. I am accepting Idle_minds as the answer since they first answered.

thanks all for the help

again

EE rocks!!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question