Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

vbscript input greater than 254 characters?

Status
Not open for further replies.

cbsarge

IS-IT--Management
Jun 20, 2001
219
US
I have a script that uses an input box to accept a URL. The script is now failing because the URLs are much greater than 254 characters. Is there any method in a vbscript that can accept input greater than 254 characters and asign the input to a variable?

Here is the line as it exists now.
Code:
strURL = InputBox("Enter the URL here.", "URL input box")

Thanks!

[!]The AutoSavers![/!] [2thumbsup]
 
That's not realistic. I can't even expect typing anything less than 254 characters without error. Rudimentally, ask the user to establish data in a text file of agreed name and path, and read from it in the script as input, or read the path to it from inputbox input by the user if you want that freedom.
 
They will actually be copying and pasting the URL from an existing tab. The URL is different every time. I could have them edit the vbscipt file each time but, was hoping to make it easier by allowing them to just paste it in instead.

[!]The AutoSavers![/!] [2thumbsup]
 
I know what the answer will be before I even responded above in the first place! and know the answer would be futile in any case. Use hta with some textarea input element to do the thing.
 
they are getting the url from IE i presume?
you can script access to the current IE instance and grab the current url programmatically from a vbscript?

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald
 
not sure if Chrome exposes an OLE interface

I Hear, I Forget
I See, I Remember
I Do, I Understand

Ronald McDonald
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top