Solved

Copying files from network drives to client.

Posted on 2003-11-24
3
1,257 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
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
TooKoolKris earned 250 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Your welcome.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

772 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

12 Experts available now in Live!

Get 1:1 Help Now