this is for logon scripting -- I'm trying to make a message box with a
rather long message string in it but the msgbox function truncates my
message after 1023 -- the apparently character limitation for the
vbscript function. If I have a string that I want to display in a
msgbox but it is > 1023 characters, is there a way I can have the
msgbox function display that?

Re: vbscript msgbox 1023 character limit by Ayush

Ayush
Wed Feb 28 22:17:59 CST 2007

internetsavant@gmail.com wrote ::
> If I have a string that I want to display in a
> msgbox but it is > 1023 characters, is there a way I can have the
> msgbox function display that?

WScript.Echo String

Good Luck, Ayush.
--
Regular Expression Syntax : http://snipurl.com/RegularExpr_Syntax

Re: vbscript msgbox 1023 character limit by Michael

Michael
Wed Feb 28 22:29:08 CST 2007

internetsavant@gmail.com wrote:
> this is for logon scripting -- I'm trying to make a message box with a
> rather long message string in it but the msgbox function truncates my
> message after 1023 -- the apparently character limitation for the
> vbscript function. If I have a string that I want to display in a
> msgbox but it is > 1023 characters, is there a way I can have the
> msgbox function display that?

The WshShell.Popup method doesn't have that 1023 character limit...

with CreateObject("wscript.shell")
s = String(1023,"x") & "hello"
MsgBox s
.Popup s
End with


--
Michael Harris
Microsoft.MVP.Scripting



Re: vbscript msgbox 1023 character limit by internetsavant

internetsavant
Thu Mar 01 22:28:25 CST 2007

On Feb 28, 8:29 pm, "Michael Harris \(MVP\)" <mikhar.at.mvps.dot.org>
wrote:
> internetsav...@gmail.com wrote:
> > this is for logon scripting -- I'm trying to make a message box with a
> > rather long message string in it but the msgbox function truncates my
> > message after 1023 -- the apparently character limitation for the
> > vbscript function. If I have a string that I want to display in a
> > msgbox but it is > 1023 characters, is there a way I can have the
> > msgbox function display that?
>
> The WshShell.Popup method doesn't have that 1023 character limit...
>
> with CreateObject("wscript.shell")
> s = String(1023,"x") & "hello"
> MsgBox s
> .Popup s
> End with
>
> --
> Michael Harris
> Microsoft.MVP.Scripting

Gents, thank you very much for your posts. oShell.Popup worked like a
charm. I do appreciate the prompt response. Cheers.