Naming a text file from a selection in a listbox

Tech-Archive recommends: Fix windows errors by optimizing your registry



Is it possible to have a text file named per a selection from a list box. I
am writing the script to list all the pcs in the offic.....created an html
file to load the list box and I select the computer and have the script run
giving me all the information I wanted....

in the vbs file here is what i am using to name the text file...

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.CreateTextFile("c:\Scripts\inventory.txt")

But I want "inventory.txt" to be named "k42.txt" because I selected that
from the list of computers.....

<select size="4" name="Listbox1">
<option value="k42">k42</option>
<option value="mtj27">mtj27</option>
<option value="mtj26">mtj26</option>
.



Relevant Pages

  • Re: Equivalent dialog command in Solaris?
    ... I am looking at writing a script that would use a list and ... allow you to move a highlight bar to make a selection. ...
    (comp.unix.solaris)
  • Re: Beginner problem trying to iterate through a selection
    ... flesh out the larger script I was working on, ... exit sub ... selection. ... ' Increments cell values within a vertical single column selection ...
    (microsoft.public.excel.programming)
  • Re: [WR] round tuits
    ... Jackson Pillock wrote: ... I do, too many projects going, not enough time, priorities lean toward ... I started writing a precinct drama set in a locked psychiatric ward. ... Sent off my script. ...
    (misc.writing)
  • Re: crisis Perl
    ... As to writing good code to begin with, ... the top of the script. ... the "use warnings;" line won't actually change ... recommended declaring variables IN AS SMALL AS SCOPE AS POSSIBLE. ...
    (comp.lang.perl.misc)
  • Marginally archaeaology: Eight scripts that still cant be read
    ... WRITING is one of the greatest inventions in human history. ... literate civilisation at the time of the ... So how do you decipher an unknown script? ... there must be some link to a known language. ...
    (sci.archaeology)