Computing.Net > Forums > Programming > vbscript custom title

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

vbscript custom title

Reply to Message Icon

Name: fcarstens
Date: July 29, 2009 at 00:54:21 Pacific
OS: Windows Vista
Subcategory: Batch
Comment:

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".



Sponsored Link
Ads by Google

Response Number 1
Name: d4rkcell
Date: July 29, 2009 at 07:10:04 Pacific
Reply:

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?


0

Response Number 2
Name: Razor2.3
Date: July 30, 2009 at 07:16:15 Pacific
Reply:
0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: vbscript custom title

Please Proof My Batch www.computing.net/answers/programming/please-proof-my-batch/15047.html

VBscript, concatenating arrays www.computing.net/answers/programming/vbscript-concatenating-arrays/14270.html

Vbscript & SQL www.computing.net/answers/programming/vbscript-amp-sql/1243.html