Link to home
Start Free TrialLog in
Avatar of calebS
calebS

asked on

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.
Avatar of RanjeetRain
RanjeetRain

Yes. Go to Project > Reference.

Form the list select "Window Scripting Host"
Sorry! That'l be "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.
Avatar of calebS

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of RanjeetRain
RanjeetRain

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of calebS

ASKER

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?
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.
Let me be more clear. In your application you will be referencing  "Microsoft Scripting Runtime", which actually is "Window Scripting Host".
Avatar of calebS

ASKER

okay thanks..