View Single Post
  #10  
Old February 17th 20, 01:28 AM posted to alt.comp.hardware.pc-homebuilt
[email protected]
external usenet poster
 
Posts: 533
Default A strange weakness in all MS Windows versions

I was wondering what happened to (q)basic. It seems to have evolved into VBScript, I never used it much didn't even know it exists on windows or that it can run by default.

I was just made aware for this by somebody showing me this:

Store this line in a file called HelloWorld.vbs

MsgBox("Hello, World!")


And there is a good chance it will run on your windows if it is somewhat recent

This kinda reminds me a little bit of "melissa virus".. so yes... I do kinda know windows does have some kind of visual basic thingy... but not exactly sure where or what it is, it turns out it's everywhere... on the command line... in the browser.... in the server. YUP bill gates like this stuff... so now it's everywhere =D

Here is some more interesting information:

https://en.wikipedia.org/wiki/VBScript

What interests me for this topic/thread is the build in support in the operating system itself, seems usefull for administrators to automate things... apperently it can also do GUIs... so maybe it can also do some decent graphics, don't know about that =D

"
VBScript can also be used to create applications that run directly on a workstation running Microsoft Windows. The simplest example is a script that makes use of the Windows Script Host (WSH) environment. Such a script is usually in a stand-alone file with the file extension .vbs. The script can be invoked in two ways: Wscript.exe is used to display output and receive input through a GUI, such as dialog and input boxes. Cscript.exe is used in a command line environment.

VBScript can be included in two other types of scripting files: Windows Script Files, and HTML Applications.

A Windows Script File (WSF) is styled after XML. A WSF file can include multiple VBS files. As a result, WSF files provide a means for code reuse: a library of classes or functions can be stored in one or more .vbs files, which can be included in .wsf files, so the functionality can be reused in a modular way. The files have extension .wsf and can be executed using wscript..exe or cscript.exe, just as a .vbs file can.

An HTML Application (HTA) is styled after HTML. The HTML in the file is used to generate the user interface, and a scripting language such as VBScript is used for the program logic. The files have extension .hta and can be executed using mshta.exe.

VBScript (and JScript) can also be used in a Windows Script Component, an ActiveX-enabled script class that can be invoked by other COM-enabled applications.[10] These files have extension .wsc.

VBScript is simple to create and can be coded using an easy to use text editor like Notepad. A simple VBScript saved by the .vbs extension can be run on a Windows system by double clicking it.
"

One open question that remains is, is this "just a script"... or is this a "programming language".


What would be the technical difference between a "script" and a "language".

Maybe it was just called "script" to make it sound a little bit more cool or light weight not sure.

For now I am kinda happy to see that there is at least some programming possibility for windows build-in... not all versions, windows 95 might not have it, but since windows 98 and windows nt 4.0 it seems it does have this ! =D

Bye for now,
Skybuck.