Hello All
I have the following vbscript
<script type="text/vbscript">
Function GetFileList()
folder = "C:\Documents and Settings\HP_Owner\Desktop\Slideshow\pics\"
set fso = CreateObject("Scripting.fileSystemObject")
set fold = fso.getFolder(folder)
for each file in fold.files
msgbox file.name
next
set fold = nothing: set fso = nothing
End Function
</script>
this gets the filename of all files in a certain directory for me and works fine but what i would like to do is add each file to an array and instead of using options in the code below use the array instead, is this possible and if so can someone give me an example please
<select name="slide" onChange="change();">
<option value="./pics/pic01.jpg" selected>Cart
<option value="./pics/pic02.jpg">AAT
<option value="./pics/pic03.jpg">Boat
</select>
thanks
gibbo
I have the following vbscript
<script type="text/vbscript">
Function GetFileList()
folder = "C:\Documents and Settings\HP_Owner\Desktop\Slideshow\pics\"
set fso = CreateObject("Scripting.fileSystemObject")
set fold = fso.getFolder(folder)
for each file in fold.files
msgbox file.name
next
set fold = nothing: set fso = nothing
End Function
</script>
this gets the filename of all files in a certain directory for me and works fine but what i would like to do is add each file to an array and instead of using options in the code below use the array instead, is this possible and if so can someone give me an example please
<select name="slide" onChange="change();">
<option value="./pics/pic01.jpg" selected>Cart
<option value="./pics/pic02.jpg">AAT
<option value="./pics/pic03.jpg">Boat
</select>
thanks
gibbo