Link to home
Start Free TrialLog in
Avatar of villny123
villny123

asked on

Copying files from network drives to client.

Hi,
I am trying to copy dll files from a network drive to client machines for my appl.  I first unregister the local copies, copy the files, then register them.  It was easier for the users for me to use code than to have then run an install.

The following code works with clients running xp, but not win98 (statement hangs):

   Dim fso As new FileSystemObject
   fso.CopyFolder "J:\MyApp\*", "C:\Program Files\", True

I also tried filecopy but I got err code 70, "Access denied" on both xp and win98 clients.

   Dim fso As new FileSystemObject
   fso.CopyFile "J:\MyApp\DLLa", "C:\Program Files\MyApp\DLLa", True

Any help would be appreciated.

Thanks.
Mike
ASKER CERTIFIED SOLUTION
Avatar of TooKoolKris
TooKoolKris

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 villny123
villny123

ASKER

I ended up doing the reverse of what you suggested.  I switched  to the CopyFile method and it worked.

Thanks again!
Your welcome.