If you need to have multiple commands in one line in MS Windows' VBScript, you can accomplish that by using the colon (:) operator. The following line of script will display two message-boxes after each other:

Msgbox"Hello." : Msgbox"Hey!"

You can leave as much space as you want between the commands and the colon.

Merge Lines in VBScript (Windows)
Tagged on:                         

One thought on “Merge Lines in VBScript (Windows)

  • Permalink

    Keep this going please, great job!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Ad #native_company# — #native_desc# #native_cta#