Solved

What is a VB Script?

Posted on 2003-11-28
7
468 Views
Last Modified: 2010-05-03
Hi!

I have been programming in Visual Basic for over a few years now and I have been hearing about VB Script over and over, but I never took time to look what it is.

So I have few questions:

1) What is a VB Script?
2) What is the difference between Visual Basic and VB Script?    
3) What are the advantages of using VB Script over Visual Basic and vice versa?
4) What is VB Script used for? Why can't we use Visual Basic for it?
5) Where is a good place to start if I choose to learn VB Script?

Thanx in advance!
0
Comment
Question by:dbrckovi
[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
  • 3
  • 2
  • 2
7 Comments
 
LVL 10

Accepted Solution

by:
ADSaunders earned 50 total points
ID: 9836598
Hi dbrckovi,

1, It is one of the scripting languages supported by WSH Windows Scripting Host.
2, Very little, apart from that VB is compiled to an EXE, VBScript needs to run in a scripting host.
3. Take it as you find it, Don't need a compiler, quick 'try & see' etc. etc.
4. Mainly used in for example ASP pages, and sometimes sophisticated scripting that .bat and .cmd files can't handle. In most cases you could use VB however.
5. If you're already a VB programmer, then download the Windows scripting documentation from MSDN, Assuming you have Windows Scripting Host (comes with W2k and up) free download otherwise (at least it used to be), Then you're away!

Regards .. Alan
0
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 50 total points
ID: 9836627
VBScript is a VB-like language wich can be executed by a as scripting host such as Windows Scripting Host or a browser.
It has no IDE and can be written using notepad.
To test, write a line, say
MsgBox "Hello"
and save it as Hello.vbs.
Double click on the file in explorer and it'll probably work OK.
I'll look up some links for further information.

0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9836855
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Author Comment

by:dbrckovi
ID: 9836964
Thats great!

Thanx guys, but one more Q.

Is there some VBScript Editor, which will add color to code, and call help for a selected keyword when I press F1 ( Like VB )?
0
 
LVL 10

Expert Comment

by:ADSaunders
ID: 9837000
dbrckovi,
here are several syntax coloring editors available, a lot of them free, just do a google search, but check that they are set up for VB / VBscript. Here are a few:
http://www.crimsoneditor.com/
http://www.pspad.com/index_en.html
http://www.lancs.ac.uk/people/cpaap/pfe/
.. Alan
0
 
LVL 11

Author Comment

by:dbrckovi
ID: 9837017
Thanx again!
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 9837314
If you have VB you might as well use its IDE (with early binding) for most of the development and do any necessary changes (including to late binding) at the end.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

732 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