Solved

"Path not found" using filecopy

Posted on 2014-12-21
7
102 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 46

Expert Comment

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

Accepted Solution

by:
Chris Millard earned 500 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 69

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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.
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…
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…

777 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