Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...At last there is indeed a website/forum that deals with professional and serious matters. Keep up with the good work!!"

Geography

Where in the world do Tek-Tips members come from?
dBjason (Programmer)
19 Dec 10 18:46
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
strongm (MIS)
19 Dec 10 19:42
>.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.

 

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!

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