What do I need to reference to access the FSO?

I am using Visual Basic 6.0, and am wanting to use a file system object to read the contents of a text file into a string.

However, fileSystemObject is not in my 'list' of objects.

I am assuming I need to reference a dll to allow this, can anyone help here?

Thanks,
cassandra.
LVL 1
calebSAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RanjeetRainCommented:
Yes. Go to Project > Reference.

Form the list select "Window Scripting Host"
0
RanjeetRainCommented:
Sorry! That'l be "Microsoft Scripting Runtime"
0
RanjeetRainCommented:
Obejct module name is scrrun.dll and its located in the system32 folder in your windows home folder. If its not available in teh list, try browsing to it and selecting it manually.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

calebSAuthor Commented:
windows scripting? Am I to assume by the name this is not the type of module that I want to be using in a desktop application?
0
RanjeetRainCommented:
Please ignore the first comment.

Set a reference to "Microsoft Scripting Runtime". Obejct module name is scrrun.dll and its located in the system32 folder in your windows home folder. If its not available in teh list, try browsing to it and selecting it manually.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
calebSAuthor Commented:
I will, (and the points are yours)  but my question stands (if you don't mind me asking), is the scripting runtime designed for scripting, is it what I should be using in a desktop application?
0
RanjeetRainCommented:
No. That is a generic TERM used to describe this. "Window Scripting Host" is kinda an application which can be used from VB using the "Microsoft Scripting Runtime" library.
0
RanjeetRainCommented:
Let me be more clear. In your application you will be referencing  "Microsoft Scripting Runtime", which actually is "Window Scripting Host".
0
calebSAuthor Commented:
okay thanks..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.