MSFN Forum: need vbscript code snippet for listbox - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

need vbscript code snippet for listbox Rate Topic: -----

#1 User is offline   larrysilver 

  • Group: Members
  • Posts: 5
  • Joined: 03-February 04

Posted 10 February 2004 - 09:00 PM

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


#2 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,239
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

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


#3 User is offline   larrysilver 

  • Group: Members
  • Posts: 5
  • Joined: 03-February 04

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

#4 User is offline   verukins 

  • Group: Members
  • Posts: 9
  • Joined: 13-January 04

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy