Solved

Copying files from network drives to client.

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
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.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

808 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