Re: General VBScript Questions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Those are very general questions. It's hard to
give a full answer in a newsgroup...

Where do you obtain VBScript?

You don't "obtain" it. It's a language, like
javascript. The Windows Script Host in
Windows allows you to run VBScript files(.vbs).
Internet Explorer also recognizes VBScript.

What is its general purpose/use?

Mostly for automations and small, simple
programs that run on Windows. It can also used
in ASP and with IE.

Microsoft invented VBScript in the mid-90s to
compete with Netscape, which was using
javascript. As is Microsoft's usual strategy, they
came up with a competing technology and tried
to make it the standard so that Netscape would
be seen as limited.

VBScript never took off for browser use. No one
but Microsoft ever supported it, to speak of. So it's
useless for client-side webpage scripting unless
it's IE-only.

So, there was Microsoft with this nice new scripting
language, and only DOS for writing Windows
script-type files. So they added the ability to use COM
objects and ended up with a very flexible Windows
script language that could make use of a limited GUI.

VBS is very useful for simple things like batch file
operations, automated file editing, etc. And i can be used
in HTAs, using IE, to create browser-based software.


What's the difference between VBScript and VB.NET?

VBScript is script - a text-based code that gets interpreted
by a "host", like the Windows Script Host or IE. VB.Net
is a semi-compiled language for writing java-like software.

How does VBScript fit into building a website?

It usually doesn't, unless you have a Windows server
and want to write ASP server-side includes, etc.



.



Relevant Pages

  • Re: vbscript or perl
    ... I've never done Windows scripting before. ... > perl. ... > The script in question most does database stuff e.g. calls stored procs, ... I think clearly vbscript would be the way to go. ...
    (comp.lang.perl.misc)
  • FormatMessage? - Error Text from Error Number
    ... I am using the following in a VBScript file run by Windows Script Host Version 5.1 on Windows 2000: ... This works fine if the file does not already exist, BUT strBackupLog returns 183 indicating that the File exists the second time I run my Script. ... In C++ you use FormatMessageand the list of System Errors has: ... So can you call FormatMessageor equivalent from VBScript? ...
    (microsoft.public.scripting.vbscript)
  • Re: why the simple vbscript wont run
    ... I have the following simple vbscript I found from internet written by ... in windows command window, in the directory where the script exists ... No excel file was opened and saved. ...
    (microsoft.public.scripting.vbscript)
  • Re: In if-Statement mehrere Bedingungen mit =?ISO-8859-1?Q?UND_bz?= =?ISO-8859-1
    ... The Script Center Script Repository ... Windows Script Host, VBScript und JScript: ...
    (microsoft.public.de.german.windowsxp.sonstiges)
  • Re: Looking for a good scripting language.
    ... > I am newbie to Windows. ... >write a script that searchs for all executables in computer. ... >and Windows Script Host. ... I do no want to install perl. ...
    (microsoft.public.windows.server.scripting)