any one have a code snippet to create a list box based on entries in a text file, needs to work in PE with WSH support.
I want to be able to choose a list of machine types from a listbox, with the model names stored on a text file.
thanks in advance
Larry
Page 1 of 1
need vbscript code snippet for listbox
#2
Posted 11 February 2004 - 12:50 PM
Basically you can't via VBScript itself, as there is no input methods in VBS other than the InputBox function. You would need to use IE as a front end to do it. See the links below tanken from here.
Quote
To make a form with check boxes you can use IE as a front end.
http://www.borncity....r/WSHFormIE.htm
and to run the installation programs use WshShell.Run
http://www.ss64.com/wsh/run.html
http://www.borncity....r/WSHFormIE.htm
and to run the installation programs use WshShell.Run
http://www.ss64.com/wsh/run.html
#3
Posted 11 February 2004 - 08:15 PM
problem I have been having is that most of them are using ie controls which don't seem to work with PE (i am not a very good coder) if anyone has some snippets I could use please post them, otherwise I think i will wind up having to compile a vb exe to make this work
thanks
Larry
thanks
Larry
#4
Posted 16 February 2004 - 05:59 AM
hey larry,
i use this html with a HTA under winPE 1.2 with WSH/HTA support added.
If you need a dynamic drop-down list however may i suggest using the file system object to read each line of your text into an array and then looping through each line of your array to build your html.
i use this html with a HTA under winPE 1.2 with WSH/HTA support added.
If you need a dynamic drop-down list however may i suggest using the file system object to read each line of your text into an array and then looping through each line of your array to build your html.
Share this topic:
Page 1 of 1



Help
Back to top









