INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

FileSystemObject and 2010

FileSystemObject and 2010

(OP)
Now this is just killing me... I haven't programmed in VB for a while. Was pretty good with 6 or so I thought...

I'm trying to access and use the FileSystemObject in a module in VB (using Visual Studio 2010). I added Microsoft Scripting Runtime in the project references.

Now you'd think I'd be able to declare like this:
Dim fso As FileSystemObject

But no, the class is nonexistent. Not even there.

Nor can I do this:
Dim fld As Folder

Apparently they've made some rather large changes since I last developed..

This really stinks because I kinda need to do both of these things. Google and the like have produced nothing. Seems I can't find any help online, what turns up is for .NET only -- which I can't use on this little project.

What the heck happened??? How can I manipulate/modify/enumerate directories and files? Did they scrap the FileSystemObject altogether??? What else can I use to iterate files and directories?

Thanks in advance!
-Jason

RE: FileSystemObject and 2010

>.NET ... which I can't use on this little project

Erm ... the VB in Visual Studio 2010 is VB.NET, so yes you can use .NET. In fact, you more-or-less have to.

And the tools for playing with files and folders (back to being called directories) are much more powerful and flexible than the FileSystemObject ... just have a look at the System.IO namespace.

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close