?
Solved

run-time error '70'

Posted on 2007-04-06
10
Medium Priority
?
806 Views
Last Modified: 2013-12-26
I get runtine error '70' while copying file from one location to another. Can anyone tell me what is the reason. This code was working perfectly in the past.

Name "C:\Program Files\Comet3\NURESULTS.txt" As "C:\Program Files\Comet3\NURESULTS"

src = "C:\Program Files\Comet3\NURESULTS"
des = "C:\Program Files\Nutech\Client\NURESULTS"
FileCopy src, des  <----- EROR LINE
0
Comment
Question by:Aiysha
[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
10 Comments
 
LVL 29

Expert Comment

by:leonstryker
ID: 18863982
Do you check if both directories exist?
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 18863986
Also double check you permissions.
0
 

Author Comment

by:Aiysha
ID: 18864007
I can do the copy and paste manually without any problems
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 29

Expert Comment

by:leonstryker
ID: 18864073
But, is the application using the same id?

Try copying to different directories and different files.   Are all affect the same way?
0
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 18864532
FileCopy is used to copy file(s) but not directory.

you may try this instead:

src = "C:\Program Files\Comet3\NURESULTS\*.*"
des = "C:\Program Files\Nutech\Client\NURESULTS\*.*"
FileCopy src, des
0
 
LVL 29

Expert Comment

by:leonstryker
ID: 18864548
he is copying a file, just not using an extension. You are doing that, right?
0
 
LVL 53

Accepted Solution

by:
Ryan Chong earned 2000 total points
ID: 18864569
LOL, that doesn't work... you may try this instead:


src = "C:\Program Files\Comet3\NURESULTS.txt"
des = "C:\Program Files\Nutech\Client\NURESULTS\NURESULTS.txt"
des2 = "C:\Program Files\Nutech\Client\NURESULTS\NURESULTS"
FileCopy src, des

Name des As des2

0
 
LVL 17

Expert Comment

by:CSecurity
ID: 18871611
hello
since you have not permission, the run-time error '70' occured while coping the file to another desntination.
well, maybe you are a limited account and have not permission to C:\Program Files\Nutech or its directories.
so it is because of permission.
Regards!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

771 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