|
-
Jan 31st, 2001, 02:48 PM
#1
Thread Starter
Junior Member
I have projects that need to be able to check that a file exists, and the only way of checking for this, that I know of, is with this function:
Private Function zCheckFile(strFile As String) As Boolean
zCheckFile = CreateObject("Scripting.FileSystemObject").FileExists(strFile)
End Function
I pass the path of the file (that I want to check) to strFile and it returns a boolean (True it exists and False if it doesn't). Which works fine on my machine.
But the problem is when I run the .exe on another machine, which does not have VB. I get this Error:
Runtime Error 429, ActiveX component can't create object.
I have ran a Setup.exe and created a .dep file.
Does anyone know how to get around this?
I appreciate any help whatsoever. Thank you.
-
Jan 31st, 2001, 03:36 PM
#2
Junior Member
My guess is that you don't have a reference to the microsoft scripting runtime in your project, and so that library is not installed on the other computer during setup.
-
Jan 31st, 2001, 04:02 PM
#3
Thread Starter
Junior Member
Thank you!
pdeutsc,
You were right, that fixed it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|