Solved

What is a VB Script?

Posted on 2003-11-28
7
464 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Concatenate 2 userform comboboxes to a userform text box 4 62
VB6 Compile Compatibility Issue 4 102
to transfer string from C lanaguage to VBA 4 64
Copy a row 12 62
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

770 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