Solved

What do I need to reference to access the FSO?

Posted on 2003-11-23
9
343 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
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 
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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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 I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

734 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