Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateObject("Scripting.FileSystemObject")

Status
Not open for further replies.

Zeroanarchy

Technical User
Jun 11, 2001
630
AU
Set oFSO = CreateObject("Scripting.FileSystemObject")

Does anyone know which references as a minimum you can get away with using for the above command.

 
Hi
...\system32\scrrun.dll

Happy Friday
;-) If a man says something and there are no women there to hear him, is he still wrong?
 
Hi
...\system32\scrrun.dll
dunno if this is the minimum but it's the one that counts!

Happy Friday
;-) If a man says something and there are no women there to hear him, is he still wrong?
 
The FileSystemObject is part of the Scripting Runtime Library(scrrun.dll as Loomah correctly suggests).

However as your code as posted seems to be adopting late binding, you should not need to set a reference explicitly.

All this assumes that scrrun.dll is present and registered on your system (most likely).

A.C.
 
ok, just that I am getting an error whilst working on a Win95 machine and I have found that it may be related to the References that I have set inside the code.

Refrences:
Microsoft Scripting Runtime
Microsoft script control 1.0
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
WordCTL type Library

I found that when I install SCR55EN.exe it solves the problem but I am trying not to use that can someone tell me what i dont need. to run the code.

Thanks Zero Anarchy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top