Home  >  Article  >  Web Front-end  >  What is .vbs file?

What is .vbs file?

云罗郡主
云罗郡主Original
2019-02-19 16:59:1215327browse

What file is .vbs

VBS is Microsoft's visual BASIC language-script version, abbreviated as VBS. vbs is a scripting language, and the language is also similar to the language VB, currently. vbs files can be opened directly on windows.

is a script for Windows system, you can see the source code with Notepad. As long as there are no syntax errors, you can run it by double-clicking the left button. However, it must be noted that due to the simplicity and feasibility of VBS, many hacker masters now use VBS to write some viruses or malicious code. Therefore, before opening VBS, you must make sure you know the function and process of this code, otherwise the consequences will be serious. oh.

Microsoft Visual Basic Scripting Edition is the latest member of the Visual Basic family of programming languages. It applies flexible scripting to a wider range of fields, including Web client scripts in Microsoft Internet Explorer and Microsoft Internet Information Server. Web server script.

Easy to learn and use

If you already know Visual Basic or Visual Basic for Applications, you will quickly become familiar with VBScript. Even if you have not learned Visual Basic, as long as you learn VBScript, you can use all Visual Basic languages ​​for programming. Although you can learn VBscript from several of the Web pages in this tutorial, this tutorial does not tell you how to program. To learn to program, read Step by Step, published by Microsoft Press.

ActiveX Script

VBScript uses ActiveX (R) scripts to talk to the host application. With ActiveX Script, browsers and other host applications no longer require special integration code for each script component. ActiveX scripting enables the host to compile scripts, obtain and call entry points, and manage namespaces available to developers. ActiveX Script allows language vendors to build standard scripting runtime languages. Microsoft will provide runtime support for VBScript. Microsoft is working with several Internet groups to define ActiveX scripting standards to make scripting engines interchangeable. ActiveX scripting is available in Microsoft(R) Internet Explorer and Microsoft(R) Internet Information Server.

VBScript in other applications and browsers

As a developer, you can use VBScript source implementations in your products for free. Microsoft provides binary implementations of VBscript for the 32-bit Windows(R) API, the 16-bit Windows API, and the Macintosh(R). VBScript is integrated with World Wide Web browsers. VBScript and ActiveX scripts can also be used as common scripting languages ​​in other applications.

Code example

Rectangular area calculator

dim a,b,s
a=inputbox("请输入矩形的长:")
b=inputbox("请输入矩形的宽:")
s=a*b
msgbox (s)
结束


The above is the detailed content of What is .vbs file?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn