Solved

What do I need to reference to access the FSO?

Posted on 2003-11-23
9
344 Views
Last Modified: 2010-05-01
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.
0
Comment
Question by:calebS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
9 Comments
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9808136
Yes. Go to Project > Reference.

Form the list select "Window Scripting Host"
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9808145
Sorry! That'l be "Microsoft Scripting Runtime"
0
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9808149
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Author Comment

by:calebS
ID: 9808174
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
 
LVL 19

Accepted Solution

by:
RanjeetRain earned 125 total points
ID: 9808188
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
 
LVL 1

Author Comment

by:calebS
ID: 9808209
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
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9808222
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
 
LVL 19

Expert Comment

by:RanjeetRain
ID: 9808231
Let me be more clear. In your application you will be referencing  "Microsoft Scripting Runtime", which actually is "Window Scripting Host".
0
 
LVL 1

Author Comment

by:calebS
ID: 9808242
okay thanks..
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month6 days, 21 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question