Dear friend i would like to list pdf files frm folder that shd have
link to download
please help me out here is my code
<HTML>
<Head>
<Script Language=JavaScript>
function insertList(){
fileList1 = CreateFileList('\\')
fileList2 = CreateFileList('C:\\Windows\\Desktop\\')
document.forms.Form1.listField.value = fileList1+fileList2;
}
window.onload=insertList;
</Script>
<Script Language=VBScript>
Function CreateFileList(folderSpec)
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FolderExists(folderSpec) Then
Set currFolder = fso.GetFolder(folderSpec)
Set nFile = currFolder.Files
For Each isFile in nFile
nameStr = nameStr & isFile.name & vbCRLF
Next
CreateFileList = nameStr
Set fso = Nothing
Exit Function
End If
CreateFileList = "The folder " & folderSpec & " does not exist..."
Set fso = Nothing
End Function
</Script>
</Head>
<Body>
<Form name='Form1'>
<textarea id='listField' cols=40 rows=6></textarea>
</Form>
</Body>
</HTML>
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.