vbscript custom title

July 29, 2009 at 00:54:21
Specs: Windows Vista
I have the following vbs file:
Set objFSO = CreateObject( "Scripting.FileSystemObject" )
strFileVer = objFSO.GetFileVersion( "C:\Program Files\RapidStudio\MPR500 Pro 5\AlbumMaker.exe" )
WScript.Echo ( "Sorry!" & vbCrLf & "Your version " & strFileVer & " is not compatible with this update." )

I want to add a custom title for the message box (ex. "Version Error").
Can anyone help with this please? I've tried a few things, but keep getting and error saying "Cannot use parentheses when calling a Sub".


See More: vbscript custom title

Report •


#1
July 29, 2009 at 07:10:04
sure this is simple.

Rather than using WScript.Echo you should use the following

MsgBox "Sorry!" & vbCrLf & "Your version " & strFileVer & " is not compatible with this update.",vbCritical,"TITLE HERE"

Hope this helps?


Report •

#2
July 30, 2009 at 07:16:15

Report •

Related Solutions


Ask Question