Solved

CreateObject("Scripting.FileSystemObject")

Posted on 1999-01-03
2
379 Views
Last Modified: 2010-05-03
exactly as the syntax in Vb6 help i use :
1.Dim FileSys
2.Set FileSys = CreateObject("Scripting.FileSystemObject")
that's working great on my machine.
after installing the application succesfully on another machine - the application works allright, EXEPT of this
2 lines. line 2 generates a runtime error.
what is the problem ?
the other machine have ie4 exactly as my machine does.
the instalation was smooth with no problems.
should i include reference to something in my app ?
to what ? and why it's works without it on my machine?
0
Comment
Question by:AnswerTheMan
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 210 total points
ID: 1453666
Seems like you have installed the scripting services on your machine and the other machine does not have that installed.

Go to http://msdn.microsoft.com/scripting/default.htm?/scripting/windowshost/

to get the latest version of the Windows scripting host and install it on the other computer.
0
 
LVL 5

Author Comment

by:AnswerTheMan
ID: 1453667
Thanks a LOT. spent last 6 hours trying to figure it out with no result.
first time i use that Scripting in an application, and had no idea how it works.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now