Naming a text file from a selection in a listbox
- From: KBJM <KBJM@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Oct 2008 14:19:03 -0700
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>
.
- Follow-Ups:
- Re: Naming a text file from a selection in a listbox
- From: James Whitlow
- Re: Naming a text file from a selection in a listbox
- Prev by Date: Re: WINMAIL and VBS
- Next by Date: How do I instanciate a MSXML2.XMLHTTP60 object?
- Previous by thread: How to create a new file and write data in Excel page
- Next by thread: Re: Naming a text file from a selection in a listbox
- Index(es):
Relevant Pages
|