Hi Nag,

This question isn't related to Google Maps v3 and doesn't really belong
here. Perhaps you could try doing some  Google searches to find your answer.

Thanks

Luke

On Tue, Apr 20, 2010 at 6:42 AM, nag <[email protected]> wrote:

> 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]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
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.

Reply via email to