.VBS - File Extension for Visual Basic Script Files

Q

What is VBS? VBS, short name for Visual Basic Script, is used as the file extension for Visual Basic Script code files. .VBS files are text files that can be opened by Notepad or any text editors. See the sample .VBS file included below.

✍: FYIcenter.com

A

File Extension: .VBS

MIME Type: text/plain

File Content: Visual Basic Script

.VBS files are Visual Basic Script files, which contrain Visual Basic Script source code. Here is a sample .VBS Visual Basic Script file that displays message box:

Dim objTest

Set objTest = WScript.CreateObject("First.WSC")

MsgBox objTest.SayHello, vbInformation, "Test"

objTest.YourName = "world"

MsgBox objTest.SayHello, vbInformation, "Test"

objTest.YourName = "world again"

MsgBox objTest.SayHello, vbInformation, "Test"

.VBS Visual Basic Script file sample: Click sample.vbs to download.

Since .VBS text files are in text format, you can use Notepad or any text editor to create or modify them. No special software is needed.

For for information on how to use .VBS Visual Basic Script files, see links below:

2012-07-10, 2891👍, 0💬