PantoffelSlippers
asked on
Working with files and folders in VB.Net
Hi Experts,
I'm having a little trouble working with files and folders in VB.Net. I'm new to .Net and have been using VB6 for the last 2 years. To perform the operations I would usually need with VB6 is easy.
I would usually do something like this in VB6:
Reference Windows scripting runtime.
Dim Fsys as new FileSystemObject
Dim XFile as File
Dim XFolder as Folder
Set XFolder = FSys.GetFolder("C:\Data\Su bFolder1\S ubFolder2\ ")
For Each XFile In XFolder.Files
XFile would now reference a specific file and would exposed properties and methods i found useful.
Next XFile
How can do a similar sort of thing in .Net?
Thanks
I'm having a little trouble working with files and folders in VB.Net. I'm new to .Net and have been using VB6 for the last 2 years. To perform the operations I would usually need with VB6 is easy.
I would usually do something like this in VB6:
Reference Windows scripting runtime.
Dim Fsys as new FileSystemObject
Dim XFile as File
Dim XFolder as Folder
Set XFolder = FSys.GetFolder("C:\Data\Su
For Each XFile In XFolder.Files
XFile would now reference a specific file and would exposed properties and methods i found useful.
Next XFile
How can do a similar sort of thing in .Net?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.