Solved

Copying files from network drives to client.

Posted on 2003-11-24
3
1,260 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
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

830 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