Solved

Copying files from network drives to client.

Posted on 2003-11-24
3
1,262 Views
Last Modified: 2010-05-01
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
0
Comment
Question by:villny123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
TooKoolKris earned 250 total points
ID: 9814942
Have you updated the WSH version on the W98 machine?

http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp

0
 

Author Comment

by:villny123
ID: 9828293
I ended up doing the reverse of what you suggested.  I switched  to the CopyFile method and it worked.

Thanks again!
0
 
LVL 9

Expert Comment

by:TooKoolKris
ID: 9828415
Your welcome.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month5 days, 13 hours left to enroll

627 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