what I learn is what u c

Access Files Collection using File Object :

with one comment

Dim objCurrDir As DirectoryInfo
Dim arrFiles() As FileInfo, tempFile As FileInfoobjCurrDir = New DirectoryInfo(sPPhyPath)
arrFiles = objCurrDir.GetFiles(iFormCode & ".*")

For Each tempFile In arrFiles
    If File.Exists(tempFile.Name) Then
        — your code —
    End If


Written by gchandra

March 7, 2006 at 4:24 pm

Posted in Web Coding

One Response

Subscribe to comments with RSS.

  1. Thanks gchandra for this useful script

    but If File.Exists(tempFile.Name) Then return always

    false value, it seems u have to give the full pate as

    a parameter


    November 28, 2008 at 3:24 am

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: