Runtime Error on One Machine 
Author Message
 Runtime Error on One Machine

I am executing the following code on a form load on a standard exe.  When I
run it in Visual Basic on my machine I receive the runtime error listed
below.  When I run it on another computer with VB it works fine.  I check to
make sure that all the same components were set on both machines.  I am
having trouble understanding this problem.  Here is the code:

    Set fc = CreateObject("Scripting.FileSystemObject")

    fc.DeleteFolder "\\JUDAS\F$\BOHUTCH Bkup\*", True

    fc.CopyFolder "D:\Important Files\*", "\\JUDAS\F$\BOHUTCH Bkup\", True

    End

Here is the error message:

    Run-time error '-2147024863 (80070021)':
    Method 'CopyFolder' of object 'IFileSystem' failed.

I would appreciate any suggestions.



Mon, 24 Sep 2001 03:00:00 GMT  
 Runtime Error on One Machine
<SNIP>

Quote:
> Here is the error message:

>     Run-time error '-2147024863 (80070021)':
>     Method 'CopyFolder' of object 'IFileSystem' failed.

> I would appreciate any suggestions.

Ryan

The only thing I can suggest, is to check for compatible versions of
SCRRUN.DLL in windows\system directory.

SLy



Tue, 25 Sep 2001 03:00:00 GMT  
 Runtime Error on One Machine
Hi Ryan:

Quote:
>    fc.CopyFolder "D:\Important Files\*", "\\JUDAS\F$\BOHUTCH Bkup\", True

>    End

>Here is the error message:

>    Run-time error '-2147024863 (80070021)':
>    Method 'CopyFolder' of object 'IFileSystem' failed.

You should not be using "End" to terminate a VB app -- try removing it from
your code and see if that helps.

Also, to test the the Microsoft Scripting Runtime (MSR), try adding a
reference to your app instead of using CreateObject
You may also want to check your version of SCCRUN.DLL (MSR) -- it may be
corrupt, etc.

Hope this helps,

Doug.



Tue, 25 Sep 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Runtime errors on one machine, but not another? Same machine!

2. My macros get a runtime error 5624 on other machines

3. Runtime error on machines without VB installed

4. Runtime error 50003 on some machines

5. Runtime error on European, but not USA machines

6. File sharing Lock Count Error on one machine only

7. Error 3071...Why on one machine and not on others

8. Simple Date SQL Errors on One Machine but not all the rest

9. Version 5 and 6 on one machine and one OS

10. runtime error - but only on one pc

11. Error Message, from machine to machine.

12. Error Win 95 Machines Using VB (Works Fine on NT Machines)

 

 
Powered by phpBB® Forum Software