|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Extracting a file name - how to?
hi,
I have to work with over 100 files, each one has a different name. ( from a mainframe and the files correspond to user names) After I ftp the files to my desktop is there a Vb command that can do that for me? I hope this forum is appropriate for this question. thanks- |
|
#2
|
||||
|
||||
|
well, once all the files are downloaded, you
can use something like this to work through all of them: Code:
Dim oFs As New FileSystemObject
Dim oFolder As Folder
Dim oFile As File
Dim FullPath as string = "C:\Documents and Settings\%USER%\Desktop\Folder\"
If oFs.FolderExists(FullPath) Then
Set oFolder = oFs.GetFolder(FullPath)
For Each oFile In oFolder.Files
'-- use oFile.Name to open the file and process
Next
End If
hope this helps
__________________
Look! Its a ShemZilla ![]() ![]()
|
|
#3
|
|||
|
|||
|
Quote:
Yes, thanks. It gives me a good start. ... |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Extracting a file name - how to? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|