Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

"Path not found" using filecopy

Posted on 2014-12-21
7
Medium Priority
?
165 Views
Last Modified: 2014-12-22
I am completely baffled on this one.
FileCopy "O:\test150.jpg", "C:\test155.jpg"

Open in new window

results in "Path not found"

And I assure you that the test150.jpg does exist on the "O:" drive.

It seems as though it is only working for "C:" drive transfers only.
0
Comment
Question by:hrolsons
7 Comments
 
LVL 49

Expert Comment

by:Martin Liss
ID: 40512150
Name "O:\test150.jpg" As "C:\test155.jpg"
0
 
LVL 17

Accepted Solution

by:
Chris Millard earned 2000 total points
ID: 40512163
Are you by any chance trying to do this on Vista/Win 7/Win 8 etc? It's quite possible that it is the OS causing the issue. VB Classic is (obviously) quite old now, and some functions will fail without error.

What about if you try to compile the code then run as administrator, or try disabling UAC.

UAC might also be the problem by not allowing you to copy into the root of C:. Could you perhaps change the destination folder just in case it's a UAC issue?
0
 

Author Comment

by:hrolsons
ID: 40512211
@Martin - I still get "path not found"

@Chris - You hit the nail on the head!!!  Turned off UAC and everything is cooperating now.  Thank You!!!
0
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.

 
LVL 17

Expert Comment

by:Chris Millard
ID: 40512214
UAC is a pain in the rear end sometimes. Glad you found the problem though.
0
 
LVL 71

Expert Comment

by:Qlemo
ID: 40512522
You shall not copy to C:\. That's why UAC is preventing you from doing so.
0
 
LVL 17

Expert Comment

by:Chris Millard
ID: 40512568
@Qlemo - that has already been said above :-)
0
 
LVL 17

Expert Comment

by:Chris Millard
ID: 40513480
@hrolsons - please would you be kind enough to close the question and allocate the points now that the question has been successfully answered? Thanks.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

824 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